forked from UnchartedBull/OctoDash
-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
9819818
commit b2c5d28
Showing
3 changed files
with
36 additions
and
3 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
.github/workflows/approve-and-merge-dependency-updates.yaml
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,29 @@ | ||
name: Automatically approve and merge PRs by dependabot | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
auto-approve: | ||
name: Auto Approve a PR by dependabot | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Auto approve | ||
uses: hmarr/auto-approve-action@v2 | ||
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' | ||
with: | ||
github-token: ${{ secrets.ACTIONS_TOKEN }} | ||
auto-merge: | ||
name: Auto Merge after successful checks | ||
needs: auto-approve | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Auto merge | ||
uses: pascalgn/[email protected] | ||
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.ACTIONS_TOKEN }} | ||
MERGE_LABELS: dependencies | ||
MERGE_METHOD: squash |
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