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 4501bb8
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,12 @@ jobs:
configuration-path: .github/auto_label.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: pascalgn/automerge[email protected]
- 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
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MERGE_LABELS: "automerge,!WIP,!do-not-merge"
MERGE_METHOD: squash
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- 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 4501bb8

Please sign in to comment.