Skip to content

Commit

Permalink
[pick]
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjohnburton committed Feb 7, 2024
1 parent ed90458 commit ef6f5bb
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/ci-cherry-pick.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,20 @@ jobs:
- name: Cherry-pick commit
run: |
RELEASE_BRANCH=$(git branch -r | grep 'origin/release/[0-9]\+\.[0-9]' | sed 's/.*release\///' | sort -V | tail -n1)
echo "RELEASE_BRANCH=release/$RELEASE_BRANCH" >> $GITHUB_ENV
BRANCH=pick/non-breaking-$(date +%s)
echo "BRANCH=$BRANCH" >> $GITHUB_ENV
COMMIT_SHA=$(git rev-parse HEAD)
echo "COMMIT_SHA=$COMMIT_SHA" >> $GITHUB_ENV
git checkout $RELEASE_BRANCH
git checkout -b $BRANCH
git cherry-pick -x $COMMIT_SHA
- name: Push to Remote
run: |
git push origin ${{ env.BRANCH }}
- name: Find latest release branch
run: |
RELEASE_BRANCH=$(git branch -r | grep 'origin/release/[0-9]\+\.[0-9]' | sed 's/.*release\///' | sort -V | tail -n1)
echo "RELEASE_BRANCH=release/$RELEASE_BRANCH" >> $GITHUB_ENV
#2
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
Expand Down

0 comments on commit ef6f5bb

Please sign in to comment.