Skip to content

[AUTOMATIC BUMP] Updates purchases-hybrid-common to 17.41.0 #16

[AUTOMATIC BUMP] Updates purchases-hybrid-common to 17.41.0

[AUTOMATIC BUMP] Updates purchases-hybrid-common to 17.41.0 #16

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 }}