-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# This job will automatically create a cherry pick PR from any release/* branch to the staging branch | ||
# It allows the staging branch to stay up-to-date with fixes made to specific release branches | ||
name: Cherry pick to staging | ||
on: | ||
push: | ||
branches: | ||
- release/* | ||
jobs: | ||
cherry_pick: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Create PR to branch | ||
uses: gorillio/github-action-cherry-pick@master | ||
with: | ||
pr_branch: 'staging' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.OTTO_THE_BOT_GH_TOKEN }} | ||
|
||
# Add the auto-merge flag | ||
- name: Enable auto-merge | ||
run: gh pr edit ${{ github.event.pull_request.id }} --add-label auto-merge | ||
env: | ||
PR_URL: ${{github.event.pull_request.html_url}} | ||
GITHUB_TOKEN: ${{secrets.WEBTEAM_AUTOMERGE_TOKEN}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters