File tree Expand file tree Collapse file tree 2 files changed +27
-29
lines changed Expand file tree Collapse file tree 2 files changed +27
-29
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- name : Lint & Validate
1
+ name : Lint, validate & Dependabot auto-merge
2
2
3
3
on :
4
- pull_request_target :
4
+ pull_request :
5
5
branches :
6
6
- main
7
7
workflow_dispatch :
8
8
9
9
jobs :
10
10
lint :
11
- name : Lint & Validate
11
+ name : Lint & validate
12
12
runs-on : ubuntu-latest
13
13
steps :
14
14
- name : Checkout
15
15
uses : actions/checkout@v4
16
16
with :
17
- ref : ${{ github.event.pull_request.head.sha }}
18
17
fetch-depth : 0
19
18
20
19
- name : Install dependencies
27
26
- name : Validate
28
27
run : |
29
28
npm run validate
29
+
30
+ dependabot :
31
+ name : Dependabot auto-merge
32
+ runs-on : ubuntu-latest
33
+ needs : lint
34
+ if : github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'HTTPArchive/wappalyzer'
35
+
36
+ permissions :
37
+ contents : write
38
+ pull-requests : write
39
+
40
+ steps :
41
+ - name : Dependabot metadata
42
+ id : metadata
43
+ uses : dependabot/fetch-metadata@v2
44
+ with :
45
+ github-token : " ${{ secrets.GITHUB_TOKEN }}"
46
+
47
+ - name : Enable auto-merge for Dependabot PRs
48
+ if : steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor'
49
+ run : gh pr merge --auto --squash "$PR_URL"
50
+ env :
51
+ PR_URL : ${{github.event.pull_request.html_url}}
52
+ GH_TOKEN : ${{secrets.GITHUB_TOKEN}}
You can’t perform that action at this time.
0 commit comments