Skip to content

Commit

Permalink
Reworking the GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
nmagee committed Sep 4, 2024
1 parent e8ee42c commit 36b217b
Showing 1 changed file with 30 additions and 14 deletions.
44 changes: 30 additions & 14 deletions .github/workflows/automerge.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: automerge
name: Automerge

on:
pull_request:
types:
Expand All @@ -10,21 +11,36 @@ on:
- ready_for_review
- reopened
- unlocked
pull_request_review:

pull_request_target:
types:
- submitted
check_suite:
types:
- completed
status: {}
- opened
- synchronize
- reopened
- edited
- labeled
- unlabeled
- ready_for_review

workflow_dispatch:
inputs:
pull-request:
description: Pull Request Number
required: false
review:
description: Review ID
required: false

jobs:
automerge:
runs-on: ubuntu-latest
steps:
- id: automerge
name: automerge
uses: "pascalgn/automerge-action@v0.16.3"
permissions:
contents: write
env:
GITHUB_TOKEN: "${{ secrets.GH_TOKEN }}"
- uses: reitermarkus/automerge@v2
with:
token: ${{ secrets.GH_TOKEN }}
merge-method: rebase
do-not-merge-labels: never-merge
required-labels: automerge
pull-request: ${{ github.event.inputs.pull-request }}
review: ${{ github.event.inputs.review }}
dry-run: true

0 comments on commit 36b217b

Please sign in to comment.