Skip to content

Commit

Permalink
Fixed branch name not matching in release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisli30 committed Nov 5, 2024
1 parent fbb7dac commit 78191a3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,21 @@ jobs:
git push origin "$BRANCH_NAME"
env:
GITHUB_TOKEN: ${{ github.token }}
BRANCH_NAME: bump-to-${{ env.NEW_VERSION }}

- name: Verify Changes Before PR
if: steps.changesets.outputs.commit == 'true'
run: |
git fetch origin
git diff --exit-code origin/main || echo "Changes detected"
- name: Open Pull Request for Version Bump
if: steps.changesets.outputs.commit
if: steps.changesets.outputs.commit == 'true'
uses: peter-evans/create-pull-request@v4
with:
token: ${{ github.token }}
base: main
head: ${{ steps.create_version_bump_branch.outputs.BRANCH_NAME }}
head: ${{ env.BRANCH_NAME }}
title: "Version packages"
body: "This pull request contains version bumps for packages."

Expand Down

0 comments on commit 78191a3

Please sign in to comment.