We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4de77e commit 9e1b0e0Copy full SHA for 9e1b0e0
1 file changed
.github/workflows/dependabot-auto-merge.yml
@@ -0,0 +1,24 @@
1
+name: "Dependabot auto-merge"
2
+
3
+on: # yamllint disable-line rule:truthy
4
+ pull_request: null
5
6
+permissions:
7
+ contents: "write"
8
9
+jobs:
10
+ dependabot:
11
+ runs-on: "ubuntu-latest"
12
+ if: "${{ github.actor == 'dependabot[bot]' }}"
13
+ steps:
14
+ - name: "Dependabot metadata"
15
+ id: "metadata"
16
+ uses: "dependabot/fetch-metadata@v1.1.1"
17
+ with:
18
+ github-token: "${{ secrets.GITHUB_TOKEN }}"
19
+ - name: "Enable auto-merge for Dependabot PRs"
20
+ if: "${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' }}"
21
+ run: "gh pr merge --auto --merge \"$PR_URL\""
22
+ env:
23
+ PR_URL: "${{github.event.pull_request.html_url}}"
24
+ GITHUB_TOKEN: "${{secrets.GITHUB_TOKEN}}"
0 commit comments