chore(deps): update peter-evans/create-pull-request action to v7 #1715
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
--- | |
name: Automerge | |
on: | |
pull_request_target: | |
types: [labeled, synchronize] | |
jobs: | |
automerge_ci: | |
name: Automerge CI | |
runs-on: ubuntu-latest | |
if: | | |
github.actor == 'udondan' && | |
contains(github.event.pull_request.labels.*.name, 'automerge') | |
steps: | |
- name: Wait for tests to succeed | |
uses: fountainhead/[email protected] | |
id: wait-for-ci | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
checkName: success | |
ref: ${{ github.event.pull_request.head.sha || github.sha }} | |
timeoutSeconds: 1200 | |
intervalSeconds: 30 | |
- name: Automerge | |
uses: pascalgn/[email protected] | |
if: steps.wait-for-ci.outputs.conclusion == 'success' | |
env: | |
MERGE_LABELS: automerge | |
UPDATE_LABELS: automerge | |
GITHUB_TOKEN: ${{ secrets.OVERRIDE_TOKEN }} | |
MERGE_DELETE_BRANCH: true | |
MERGE_METHOD: squash |