Skip to content

Commit

Permalink
[TASK] Streamline the auto-merge GitHub Actions workflow (#817)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverklee authored Apr 25, 2023
1 parent 3c90439 commit 2186478
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
name: automerge
# https://docs.github.com/en/github-ae@latest/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions
name: auto-merge

on:
# We're using pull_request_target instead of pull_request due to permission issues with the pull_request target:
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions#responding-to-events
pull_request_target:

jobs:
automerge:
auto-merge:
name: Dependabot auto-merge

runs-on: ubuntu-22.04

if: ${{ github.actor == 'dependabot[bot]' }}

steps:
- name: Enable automerge
shell: bash
- name: Enable auto-merge
run: gh pr merge -R "${{ github.repository }}" --squash --auto "${{ github.event.pull_request.number }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 2186478

Please sign in to comment.