Skip to content

Update tibdex/github-app-token action to v2 #151

Update tibdex/github-app-token action to v2

Update tibdex/github-app-token action to v2 #151

name: Enable auto merge
on:
pull_request:
types:
- opened
- reopened
branches:
- main
- develop
- na2na
jobs:
enable-auto-merge:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Generate github token
id: generate_token
uses: ./.github/actions/github-app-token
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
- uses: alexwilson/enable-github-automerge-action@main
with:
github-token: ${{ steps.generate_token.outputs.token }}