Skip to content

Commit

Permalink
Fix updating version on main (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
liyaka authored Sep 2, 2024
1 parent de54ede commit 169218d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ jobs:
uses: actions/[email protected]
with:
ref: main
fetch-depth: 0
token: ${{ secrets.GH_PAT_TO_ACCESS_GITHUB_API }}

- name: Bump version on main branch
id: update_version
Expand All @@ -108,9 +110,15 @@ jobs:
git config --local user.email "[email protected]"
git config --local user.name "github-actions"
git commit -a -m "Update base version to ${{steps.update_version.outputs.new_version}}"
git push origin main
echo "Version updated to ${{steps.update_version.outputs.new_version}} on main" >> $GITHUB_STEP_SUMMARY
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GH_PAT_TO_ACCESS_GITHUB_API }}
branch: ${{ github.ref }}
force_with_lease: true

create-github-release:
needs:
- set-version
Expand Down

0 comments on commit 169218d

Please sign in to comment.