[AUTOMATIC BUMP] Updates purchases-hybrid-common to 17.41.0 #17
This file contains hidden or 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
| name: Auto-merge PHC updates | |
| on: | |
| pull_request: | |
| types: [labeled, opened, synchronize, reopened] | |
| jobs: | |
| auto-merge: | |
| # Only run for PRs created by RCGitBot with the phc_dependencies label | |
| if: | | |
| contains(github.event.pull_request.labels.*.name, 'pr:phc_dependencies') && | |
| github.event.pull_request.user.login == 'RCGitBot' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - name: Approve PR | |
| run: gh pr review --approve "$PR_URL" | |
| env: | |
| PR_URL: ${{ github.event.pull_request.html_url }} | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Enable auto-merge (squash) | |
| run: gh pr merge --auto --squash "$PR_URL" | |
| env: | |
| PR_URL: ${{ github.event.pull_request.html_url }} | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |