-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
29 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,15 @@ | ||
name: Auto-merge Dependabot PRs | ||
|
||
on: | ||
pull_request_target | ||
workflow_run: | ||
workflows: [ "Pull Request" ] | ||
types: [ completed ] | ||
|
||
jobs: | ||
auto-approve: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Wait for build success | ||
uses: fountainhead/[email protected] | ||
id: wait-for-build | ||
if: github.actor == 'dependabot[bot]' | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
checkName: 'Build Java 17' | ||
ref: ${{ github.event.pull_request.head.sha || github.sha }} | ||
- name: autoapprove | ||
if: github.actor == 'dependabot[bot]' && steps.wait-for-build.outputs.conclusion == 'success' | ||
uses: hmarr/[email protected] | ||
with: | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" | ||
- name: automerge | ||
if: github.actor == 'dependabot[bot]' && steps.wait-for-build.outputs.conclusion == 'success' | ||
uses: "pascalgn/[email protected]" | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
MERGE_LABELS: "dependencies" | ||
MERGE_METHOD: "squash" | ||
automerge-dependabot-pr: | ||
if: "github.actor == 'dependabot[bot]' | ||
&& github.event.workflow_run.event == 'pull_request' | ||
&& github.event.workflow_run.conclusion == 'success'" | ||
uses: Jikoo/PlanarActions/.github/workflows/pr_automerge_complete.yml@master | ||
with: | ||
triggering-workflow-run: ${{ github.event.workflow_run.id }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: Pull Request | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
run-ci: | ||
uses: Jikoo/PlanarActions/.github/workflows/ci_maven.yml@master | ||
store-dependabot-pr-data: | ||
if: "github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'" | ||
uses: Jikoo/PlanarActions/.github/workflows/pr_automerge_prep.yml@master | ||
with: | ||
pr-number: ${{ github.event.number }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters