Skip to content

Commit

Permalink
try dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
cuteday committed Aug 3, 2024
1 parent d589fb1 commit 7e14a1e
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Auto-merge PRs

on:
pull_request:
branches: [ hotfix ]

permissions:
pull-requests: write
contents: write

jobs:
automerge:
runs-on: ubuntu-latest
if: github.actor == 'cuteday'
steps:
- uses: peter-evans/enable-pull-request-automerge@v3
with:
token: ${{ secrets.DEPENDABOT_TOKEN }}
pull-request-number: ${{ github.event.pull_request.number }}
merge-method: squash
14 changes: 14 additions & 0 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: auto-merge

on:
pull_request:

jobs:
auto-merge:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ahmadnassri/action-dependabot-auto-merge@v2
with:
target: minor
github-token: ${{ secrets.DEPENDABOT_TOKEN }}

0 comments on commit 7e14a1e

Please sign in to comment.