Skip to content

Commit

Permalink
fix: update bump version workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
RyoJerryYu committed Dec 5, 2024
1 parent 5debe28 commit 9353352
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/bump.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,23 @@ jobs:
else
echo "::set-output name=changed::true"
fi
- name: Commit version file
if: steps.version_changed.outputs.changed == 'true'
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add ./pkg/version/VERSION
git commit -m "Update version to ${{ steps.parse_version.outputs.version }}"
git push
# - name: Commit version file
# if: steps.version_changed.outputs.changed == 'true'
# run: |
# git config --global user.name 'github-actions[bot]'
# git config --global user.email 'github-actions[bot]@users.noreply.github.com'
# git add ./pkg/version/VERSION
# git commit -m "Update version to ${{ steps.parse_version.outputs.version }}"
# git push
- name: Create pull request
if: steps.version_changed.outputs.changed == 'true'
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "Update version to ${{ steps.parse_version.outputs.version }}"
title: "Release ${{ steps.parse_version.outputs.version }}"
body: "Release version ${{ steps.parse_version.outputs.version }}"
base: main
head: release/${{ steps.parse_version.outputs.version }}
branch: "release/${{ steps.parse_version.outputs.version }}"
labels: 'release'
committer: version-release[bot] <[email protected]>
delete-branch: true

0 comments on commit 9353352

Please sign in to comment.