Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix automerge action #10055

Closed
wants to merge 13 commits into from
22 changes: 8 additions & 14 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,24 @@ on:
- opened
- synchronize
- reopened
- labeled
jobs:
automerge:
name: Automerge Dependency Updates
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' || contains(github.event.pull_request.labels.*.name, 'dependencies')
if: contains(github.event.pull_request.labels.*.name, 'dependencies')
steps:
- name: 'Wait for status checks'
id: waitforstatuschecks
- name: Wait for status checks
uses: "WyriHaximus/[email protected]"
with:
ignoreActions: Automerge Dependabot,Code coverage,Create snapcraft image,Deploy binaries on builds.jabref.org,codecov/project,markdown-link-check
checkInterval: 13
ignoreActions: Automerge Pull Requests
checkInterval: 333
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Auto approve
uses: hmarr/[email protected]
if: steps.waitforstatuschecks.outputs.status == 'success'
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Merge pull requests
uses: pascalgn/[email protected]
if: steps.waitforstatuschecks.outputs.status == 'success'
env:
MERGE_METHOD: "merge"
MERGE_METHOD: "squash"
MERGE_LABELS: ""
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
MERGE_FORKS: false
# We need a token from a maintainer who can merge even if not all requirements (e.g., reviews) are met
GITHUB_TOKEN: "${{ secrets.GH_TOKEN_COMMENT_ON_PR }}"
Loading