Skip to content

Add Auto Merge Workflow #1

Add Auto Merge Workflow

Add Auto Merge Workflow #1

Workflow file for this run

name: Dependabot
on:
pull_request:
jobs:
auto-merge:
name: Auto Merge
runs-on: ubuntu-22.04
if: github.actor == 'dependabot[bot]'
steps:
- name: Get App Token
uses: tibdex/[email protected]
id: get_token
with:
app_id: ${{ vars.STAFFBASE_ACTIONS_APP_ID }}
private_key: ${{ secrets.STAFFBASE_ACTIONS_PRIVATE_KEY }}
- name: Merge PR
run: |
gh pr merge ${{ github.event.pull_request.html_url }} --merge --admin
env:
GITHUB_TOKEN: ${{ steps.get_token.outputs.token }}