Skip to content

Commit

Permalink
Setup daneden/enable-automerge-action in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
danieletorelli committed Jan 9, 2025
1 parent b24ead6 commit 46d06ae
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@ jobs:
configuration-path: .github/auto_label.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: pascalgn/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MERGE_LABELS: "automerge,!WIP,!do-not-merge"
MERGE_METHOD: squash
- run: echo "automerge=$(gh api repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/labels | jq -r '.[].name' | grep -qw 'automerge' && echo true || echo false)" >> $GITHUB_ENV
- uses: daneden/[email protected]
if: env.automerge == 'true'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
allowed-author: "dependabot[bot]"
merge-method: SQUASH

0 comments on commit 46d06ae

Please sign in to comment.