Skip to content

Commit 7b8e001

Browse files
committed
feat: add workflow_dispatch trigger and improve tagging process in auto-tag workflow
1 parent 923f125 commit 7b8e001

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/auto_tag_master.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,29 @@ on:
1111
- '.github/**'
1212
- '*.md'
1313
- '.vscode/**'
14+
workflow_dispatch:
15+
1416
jobs:
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
@@ -43,5 +46,9 @@ jobs:
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 }}

0 commit comments

Comments
 (0)