mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-06 11:48:41 +00:00
ci: enable Dependabot for website, submodules, and GitHub Actions (#2424)
This commit is contained in:
14
.github/dependabot.yml
vendored
14
.github/dependabot.yml
vendored
@@ -7,3 +7,17 @@ updates:
|
||||
directory: "/" # Location of package manifests
|
||||
schedule:
|
||||
interval: "daily"
|
||||
- package-ecosystem: "npm"
|
||||
directory: "/website/"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
|
||||
- package-ecosystem: "gitsubmodule"
|
||||
directory: "/" # Location of .gitmodules
|
||||
schedule:
|
||||
interval: "daily"
|
||||
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/" # Location of .github
|
||||
schedule:
|
||||
interval: "daily"
|
||||
|
4
.github/workflows/dependabot.yml
vendored
4
.github/workflows/dependabot.yml
vendored
@@ -18,6 +18,9 @@ jobs:
|
||||
node-version: '12'
|
||||
- name: Autofix lockfile
|
||||
run: |
|
||||
# change directory
|
||||
cd .`git log -1 --pretty=%s | awk '{ print $9 }'`
|
||||
|
||||
# restore yarn.lock from the previous commit
|
||||
git checkout HEAD^ -- yarn.lock
|
||||
|
||||
@@ -36,6 +39,7 @@ jobs:
|
||||
yarn deduplicate
|
||||
- name: Commit changes
|
||||
run: |
|
||||
cd .`git log -1 --pretty=%s | awk '{ print $9 }'`
|
||||
git add yarn.lock
|
||||
git config --global user.name 'dependabot[bot]'
|
||||
git config --global user.email '49699333+dependabot[bot]@users.noreply.github.com'
|
||||
|
Reference in New Issue
Block a user