File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 1111 - ' .github/**'
1212 - ' *.md'
1313 - ' .vscode/**'
14+ workflow_dispatch :
15+
1416jobs :
1517 auto-tag :
1618 runs-on : ubuntu-latest
1719 steps :
1820 - uses : actions/checkout@v4
1921 with :
2022 fetch-depth : 0
21-
23+
2224 - name : Get manifest version
2325 id : manifest_version
2426 run : |
2527 version=$(jq -r .version public/base.manifest.json)
2628 echo "version=$version" >> $GITHUB_OUTPUT
27-
29+
2830 - name : Bump version and push tag
2931 id : tag_version
3032 uses : anothrNick/github-tag-action@1.67.0
3133 env :
3234 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3335 WITH_V : true
36+ DRY_RUN : true
3437 INITIAL_VERSION : ${{ steps.manifest_version.outputs.version }}
3538 RELEASE_BRANCHES : ^(master|main)$
3639 DEFAULT_BUMP : patch
4346 - name : Commit manifest changes
4447 uses : stefanzweifel/git-auto-commit-action@v6
4548 with :
46- commit_message : " ci: Bump manifest version to ${{ steps.tag_version.outputs.new_tag }}"
49+ commit_message : ' ci: Bump manifest version to ${{ steps.tag_version.outputs.new_tag }}'
4750 file_pattern : public/base.manifest.json
51+ - name : Tag branch
52+ run : |
53+ git tag -a ${{ steps.tag_version.outputs.new_tag }} -m "Tag ${{ steps.tag_version.outputs.new_tag }}."
54+ git push origin ${{ steps.tag_version.outputs.new_tag }}
You can’t perform that action at this time.
0 commit comments