Skip to content

Commit b96547f

Browse files
authored
GitHub Actions: Use typisttech/.github/.github/workflows/dependabot-auto-merge.yml@v1 (#26)
* GitHub Actions: Use `typisttech/.github/.github/workflows/dependabot-auto-merge.yml@v1`
1 parent 505f742 commit b96547f

File tree

1 file changed

+9
-18
lines changed

1 file changed

+9
-18
lines changed
Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,21 @@
11
# Taken from https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions
22
# and https://github.com/dependabot/fetch-metadata/blob/06ea45a2e4582d87b11f03c7ce596ae3261f39f6/README.md?plain=1#L133-L160
3-
name: Dependabot auto-merge
3+
name: Auto-merge Dependabot Pull Request
44

55
on: pull_request
66

77
concurrency:
88
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
99
cancel-in-progress: true
1010

11-
permissions:
12-
contents: write
13-
pull-requests: write
11+
permissions: {}
1412

1513
jobs:
1614
dependabot:
17-
runs-on: ubuntu-latest
18-
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'typisttech/comver'
19-
steps:
20-
- name: Dependabot metadata
21-
id: dependabot-metadata
22-
uses: dependabot/fetch-metadata@v2
23-
with:
24-
github-token: "${{ secrets.GITHUB_TOKEN }}"
25-
- name: Enable auto-merge for Dependabot PRs
26-
if: steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major'
27-
run: gh pr merge --auto --merge "$PR_URL"
28-
env:
29-
PR_URL: ${{github.event.pull_request.html_url}}
30-
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
15+
permissions:
16+
contents: write
17+
pull-requests: write
18+
uses: typisttech/.github/.github/workflows/dependabot-auto-merge.yml@v1
19+
with:
20+
minor: true
21+
patch: true

0 commit comments

Comments
 (0)