File tree 2 files changed +38
-16
lines changed
2 files changed +38
-16
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Dependencies
2
+
3
+ on : pull_request
4
+
5
+ permissions :
6
+ contents : write
7
+ pull-requests : write
8
+
9
+ jobs :
10
+ dependency_review :
11
+ name : Dependency review
12
+ runs-on : ubuntu-latest
13
+
14
+ steps :
15
+ - name : Checkout repository
16
+ uses : actions/checkout@v4
17
+
18
+ - name : Review dependencies
19
+ uses : actions/dependency-review-action@v4
20
+
21
+ auto_merge :
22
+ name : Enable auto-merge
23
+ runs-on : ubuntu-latest
24
+ if : github.actor == 'dependabot[bot]'
25
+
26
+ steps :
27
+ - name : Dependabot metadata
28
+ id : metadata
29
+ uses : dependabot/fetch-metadata@v2
30
+ with :
31
+ github-token : ${{ secrets.GITHUB_TOKEN }}
32
+
33
+ - name : Enable auto-merge for Dependabot PRs
34
+ if : steps.metadata.outputs.update-type == 'version-update:semver-patch'
35
+ run : gh pr merge --auto --merge "$PR_URL"
36
+ env :
37
+ PR_URL : ${{ github.event.pull_request.html_url }}
38
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments