Skip to content

Commit

Permalink
Merge pull request #16 from cacoco/cacoco/MoreRelease
Browse files Browse the repository at this point in the history
[release] also update version in main
  • Loading branch information
cacoco authored Feb 5, 2024
2 parents db593a5 + 5d5bc50 commit 9a75819
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,13 @@ jobs:
git config user.email "<bot@goreleaser.com>"
- name: Update codemeta.json version
run: |
TAG="${{ github.ref_name }}"
VER="${TAG#v}""
git branch ${{ github.ref_name }}-branch
git checkout ${{ github.ref_name }}-branch
echo "`jq '.version="${{ github.ref_name }}"' codemeta.json`" > codemeta.json
echo $(jq ".version=\"$VER\"" codemeta.json) > codemeta.json
git commit -am "Update codemeta.json version"
git push origin ${{ github.ref_name }}-branch # create a branch with the new version for PR on main
git tag -d ${{ github.ref_name }}
git tag ${{ github.ref_name }}
git push --delete origin ${{ github.ref_name }}
Expand Down
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
},
"readme": "https://github.com/cacoco/codemetagenerator/blob/main/README.md",
"runtimePlatform": "go version go1.21.6",
"version": "0.47.3",
"version": "0.47.7",
"url": "https://angstrom.io/codemetagenerator"
}

0 comments on commit 9a75819

Please sign in to comment.