v1.0.11 #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this workflow runs when a release was published. | |
on: | |
release: | |
types: [published] | |
name: "release_published" | |
jobs: | |
tag: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout code | |
uses: actions/checkout@v4 | |
- | |
name: Inject slug/short variables | |
uses: rlespinasse/github-slug-action@v4 | |
- | |
name: Tag | |
run: | | |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
git tag -d $(echo ${{env.GITHUB_REF_SLUG}} | cut -d. -f1) | true | |
git tag $(echo ${{env.GITHUB_REF_SLUG}} | cut -d. -f1) | |
- | |
name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
force: true | |
tags: true |