-
-
Save derberg/024814a26959d54f683e7bd68d68f007 to your computer and use it in GitHub Desktop.
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 PR | |
on: | |
pull_request: | |
types: | |
- labeled | |
- unlabeled | |
- synchronize | |
- opened | |
- edited | |
- ready_for_review | |
- reopened | |
- unlocked | |
pull_request_review: | |
types: | |
- submitted | |
check_suite: | |
types: | |
- completed | |
status: {} | |
jobs: | |
autoapprove: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Autoapproving | |
uses: hmarr/auto-approve-action@v2.0.0 | |
if: github.actor == 'asyncapi-bot' || github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' | |
with: | |
github-token: "${{ secrets.GITHUB_TOKEN }}" | |
automerge: | |
needs: [autoapprove] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Automerging | |
uses: pascalgn/automerge-action@v0.7.5 | |
if: github.actor == 'asyncapi-bot' || github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' | |
env: | |
GITHUB_TOKEN: "${{ secrets.GH_TOKEN }}" | |
GITHUB_LOGIN: asyncapi-bot | |
MERGE_LABELS: "" | |
MERGE_METHOD: "squash" | |
MERGE_COMMIT_MESSAGE: "pull-request-title" | |
MERGE_RETRIES: "10" | |
MERGE_RETRY_SLEEP: "10000" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment