-
Notifications
You must be signed in to change notification settings - Fork 49
46 lines (37 loc) · 1.13 KB
/
lint.yml
File metadata and controls
46 lines (37 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Lint, validate & Dependabot auto-merge
on:
pull_request:
branches:
- main
workflow_dispatch:
jobs:
lint:
name: Lint & validate
runs-on: ubuntu-slim
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install dependencies
run: npm install
- name: Lint
run: npm run lint
- name: Validate
run: npm run validate
dependabot:
name: Dependabot auto-merge
runs-on: ubuntu-slim
needs: lint
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'HTTPArchive/wappalyzer'
permissions:
contents: write
pull-requests: write
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2
- name: Enable auto-merge for Dependabot PRs
if: steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor'
run: gh pr merge --admin --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{github.token}}