Skip to content

Commit

Permalink
Create a new branch for version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisli30 committed Nov 5, 2024
1 parent da472a5 commit 8bc1ff3
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,28 @@ jobs:
if [ -n "$(git status --porcelain)" ]; then
git add .
git commit -m "Version packages"
git push
else
echo "No changes to commit"
fi
- name: Create Version Bump Branch and Push
if: steps.changesets.outputs.commit
run: |
BRANCH_NAME="release-version-bump-$(date +'%Y%m%d%H%M%S')"
git checkout -b "$BRANCH_NAME"
git push origin "$BRANCH_NAME"
env:
GITHUB_TOKEN: ${{ secrets.CHRIS_PERSONAL_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ github.token }}

- name: Open Pull Request for Version Bump
if: steps.changesets.outputs.commit
uses: peter-evans/create-pull-request@v4
with:
token: ${{ github.token }}
base: main
head: ${{ steps.create_version_bump_branch.outputs.BRANCH_NAME }}
title: "Version packages"
body: "This pull request contains version bumps for packages."

- name: Check Version Change
id: version_check
Expand Down

0 comments on commit 8bc1ff3

Please sign in to comment.