Skip to content

Commit

Permalink
Use github action token for merge me
Browse files Browse the repository at this point in the history
  • Loading branch information
fizyk committed Nov 28, 2022
1 parent 1a205ef commit ef5470f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/automerge.yml
Expand Up @@ -11,11 +11,17 @@ on:
jobs:
merge-me:
name: Merge me!
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- name: Impersonate update bot
uses: tibdex/github-app-token@v1
id: generate-token
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
- # It is often a desired behavior to merge only when a workflow execution
# succeeds. This can be changed as needed.
if: ${{ github.event.workflow_run.conclusion == 'success' }}
name: Merge me!
uses: ridedott/merge-me-action@v2.10.32
with:
Expand All @@ -29,7 +35,7 @@ jobs:
#
# This must be used as GitHub Actions token does not support pushing
# to protected branches.
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
MERGE_METHOD: MERGE
PRESET: DEPENDABOT_MINOR
ENABLED_FOR_MANUAL_CHANGES: 'true'
1 change: 1 addition & 0 deletions newsfragments/75.misc.rst
@@ -0,0 +1 @@
Use github application and additional action to allow merge-me action to merge dependabot pull requests.

0 comments on commit ef5470f

Please sign in to comment.