Skip to content

Commit 9036ec2

Browse files
committed
improve the tag step
1 parent 1f4cc40 commit 9036ec2

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/distribute.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,17 @@ jobs:
3838

3939
- name: Bump version and push tag
4040
id: tag_version
41-
uses: mathieudutour/[email protected]
42-
with:
43-
github_token: ${{ secrets.GITHUB_TOKEN }}
44-
dry_run: ${{ github.event.inputs.autoTag == 'false' }}
45-
custom_release_rules: |
46-
"fix:patch:Bug Fixes,hotfix:patch:Bug Fixes,minor:minor:Fixes,patch:patch:Quick fixes,refactor:minor:Refactoring,implement:minor:Features,change:minor:Changes,breaking:major:Changes,major:major:Changes"
41+
uses: anothrNick/[email protected]
42+
env:
43+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
WITH_V: true
45+
DRY_RUN: ${{ github.event.inputs.autoTag == 'false' }}
4746

4847
- name: Update manifest.json
4948
if: github.event.inputs.autoTag == 'true'
50-
run: jq --arg version "${{ steps.tag_version.outputs.new_version }}" '.version=$version' public/base.manifest.json > tmp.json && mv tmp.json public/base.manifest.json
49+
run: |
50+
new_version=$(echo "${{ steps.tag_version.outputs.new_tag }}" | sed 's/^v//')
51+
jq --arg version "$new_version" '.version = $version' public/base.manifest.json > public/base.manifest.json.tmp && mv public/base.manifest.json.tmp public/base.manifest.json
5152
5253
- name: Commit changes
5354
if: github.event.inputs.autoTag == 'true'

0 commit comments

Comments
 (0)