Skip to content

Commit

Permalink
Merge pull request #23 from Staffbase/Add-Auto-Merge-Workflow
Browse files Browse the repository at this point in the history
Add Auto Merge Workflow
  • Loading branch information
0x46616c6b authored Feb 1, 2024
2 parents a0824bb + 617eecd commit 56035b4
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
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 }}

0 comments on commit 56035b4

Please sign in to comment.