Skip to content

Commit

Permalink
Change the approve-merge-dependabot-pr action so it has permissions o…
Browse files Browse the repository at this point in the history
…n private repos
  • Loading branch information
Sebastien Belin committed Apr 18, 2023
1 parent 353025f commit ad8aee8
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/approve-merge-dependabot-pr-trigger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Approve And Merge Dependabot PR Trigger

on:
pull_request:

jobs:
gradle-check:
name: Approve And Merge Dependabot PR Trigger
uses: interlok-tooling/reusable-workflows/.github/workflows/approve-merge-dependabot-pr-trigger.yml@main
secrets:
DEPENDABOT_APPROVE_MERGE_GITHUB_TOKEN: ${{ secrets.DEPENDABOT_APPROVE_MERGE_GITHUB_TOKEN }}
17 changes: 12 additions & 5 deletions .github/workflows/approve-merge-dependabot-pr.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
name: Approve And Merge Dependabot PR

on:
pull_request:
repository_dispatch:
types:
- approve-merge-dependabot-pr

jobs:
gradle-check:
build:
name: Approve And Merge Dependabot PR
uses: interlok-tooling/reusable-workflows/.github/workflows/approve-merge-dependabot-pr-trigger.yml@main
secrets:
DEPENDABOT_APPROVE_MERGE_GITHUB_TOKEN: ${{ secrets.DEPENDABOT_APPROVE_MERGE_GITHUB_TOKEN }}
uses: interlok-tooling/reusable-workflows/.github/workflows/approve-merge-dependabot-pr.yml@main
with:
branch: ${{ github.event.client_payload.branch }}
pull_request: ${{ github.event.client_payload.pull_request }}
pull_request_title: ${{ github.event.client_payload.pull_request_title }}
auto-approve-merge: ${{ github.event.client_payload.auto-approve-merge }}
sha: ${{ github.event.client_payload.sha }}
update-type: ${{ github.event.client_payload.update-type }}

0 comments on commit ad8aee8

Please sign in to comment.