Skip to content

Commit

Permalink
Update release-bot.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
buger authored Sep 27, 2024
1 parent 489d80e commit b3a99b5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release-bot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ jobs:
- name: Clone repository and cherry-pick commit
if: steps.check_command.outputs.release_valid == 'true'
id: cherry_pick
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPO: ${{ github.repository }}
Expand Down Expand Up @@ -116,9 +117,13 @@ jobs:
PR_URL=$(gh pr create --title "Merging to $GITHUB_BRANCH: $TITLE" --body "$MESSAGE" --repo $GITHUB_REPO --base $GITHUB_BRANCH --head merge/$GITHUB_BRANCH/$GITHUB_CHERRY_PICK_COMMIT)
fi
echo "$PR_URL"
echo "Extract PR ID"
PR_ID="${PR_URL##*/}"
echo "$PR_ID"
echo "If no merge failure, auto-merge the PR"
if [ $MERGE_FAILED -eq 0 ]; then
gh pr merge --squash $PR_ID --auto --subject "Merging to $GITHUB_BRANCH: $TITLE" --body "$MESSAGE"
Expand Down

0 comments on commit b3a99b5

Please sign in to comment.