chore: Fix permission for cherry-pick job #25
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
# This job will automatically create a cherry pick PR from any release/* branch to the dev branch | |
# It allows the dev branch to stay up-to-date with fixes made to specific release branches | |
name: Cherry pick to dev | |
on: | |
push: | |
branches: | |
- release/* | |
permissions: | |
pull-requests: write | |
contents: write | |
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: 'dev' | |
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}} |