Skip to content

Commit

Permalink
Add enable auto-merge by workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
na2na-p committed Dec 8, 2023
1 parent 1715075 commit 31ff6a6
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/enable-auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Enable auto merge
on:
pull_request:
types:
- opened
- reopened
- ready_for_review
branches:
- main
- v3

jobs:
enable-auto-merge:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Generate github token
id: generate_token
uses: tibdex/[email protected]
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
env:
OPENSSL_CONF: /dev/null
- uses: alexwilson/enable-github-automerge-action@main
with:
github-token: ${{ steps.generate_token.outputs.token }}

0 comments on commit 31ff6a6

Please sign in to comment.