@@ -21,16 +21,16 @@ jobs:
2121 if : github.repository == 'HTTPArchive/almanac.httparchive.org'
2222 steps :
2323 - name : Checkout branch
24- uses : actions/checkout@v5
24+ uses : actions/checkout@v6
2525 with :
2626 # Full git history is needed to get a proper list of changed files within `super-linter`
2727 fetch-depth : 0
2828 - name : Setup Node.js for use with actions
29- uses : actions/setup-node@v4
29+ uses : actions/setup-node@v6
3030 with :
3131 node-version : ' 20'
3232 - name : Set up Python 3.12
33- uses : actions/setup-python@v5
33+ uses : actions/setup-python@v6
3434 with :
3535 python-version : ' 3.12'
3636 - name : Run the website
4242 - name : Lint Generated HTML
4343 uses : super-linter/super-linter/slim@v8
4444 env :
45- DEFAULT_BRANCH : main
4645 FILTER_REGEX_INCLUDE : src/static/html/.*
4746 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
47+ LOG_LEVEL : DEBUG
4848 VALIDATE_HTML : true
4949 USE_FIND_ALGORITHM : true
5050 - name : Set the list of URLs for Lighthouse to check
6464 run : |
6565 # All results by URL:
6666 echo '${{ steps.LHCIAction.outputs.manifest }}' | jq -r '.[] | (.summary|tostring) + " - " + .url'
67+
68+ dependabot :
69+ name : Dependabot auto-merge
70+ runs-on : ubuntu-latest
71+ needs : build
72+ if : |
73+ github.event.pull_request.user.login == 'dependabot[bot]' &&
74+ github.repository == 'HTTPArchive/almanac.httparchive.org'
75+
76+ permissions :
77+ contents : write
78+ pull-requests : write
79+
80+ steps :
81+ - name : Dependabot metadata
82+ id : metadata
83+ uses : dependabot/fetch-metadata@v2
84+ with :
85+ github-token : " ${{ secrets.GITHUB_TOKEN }}"
86+
87+ - name : Enable auto-merge for Dependabot PRs
88+ if : |
89+ (
90+ steps.metadata.outputs.update-type == 'version-update:semver-patch' ||
91+ steps.metadata.outputs.update-type == 'version-update:semver-minor'
92+ ) && !(
93+ contains(steps.metadata.outputs.dependency-names, 'prettier') ||
94+ contains(steps.metadata.outputs.dependency-names, 'sqlfluff') ||
95+ contains(steps.metadata.outputs.dependency-names, 'super-linter')
96+ )
97+ run : gh pr merge --squash --auto "$PR_URL"
98+ env :
99+ PR_URL : ${{github.event.pull_request.html_url}}
100+ GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
0 commit comments