Skip to content

Commit

Permalink
add push (#976)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjeet-tw authored Apr 8, 2024
1 parent f15ec27 commit 58cb2fd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/~reusable_public_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,17 +87,15 @@ jobs:
id: commit_version
run: |
git checkout -b bump-version-"$VERSION_NUMBER"
(echo "pushVersion=false" >> $GITHUB_OUTPUT) || (git commit -m "Updating version" --no-verify && git push origin bump-version-"$VERSION_NUMBER" --no-verify && echo "pushVersion=true" >> $GITHUB_OUTPUT)
git push origin bump-version-"$VERSION_NUMBER" --no-verify
env:
VERSION_NUMBER: ${{ steps.publicVersion.outputs.version }}
- name: Create PR for version
if: steps.commit_version.outputs.pushVersion == 'true'
run: |
gh pr create --base main --title "Update version" --body "Update version"
env:
GITHUB_TOKEN: ${{ steps.get_app_token.outputs.token }}
- name: Approve and Merge PR
if: steps.commit_version.outputs.pushVersion == 'true'
run: |
gh pr review --approve
env:
Expand Down

0 comments on commit 58cb2fd

Please sign in to comment.