mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-11 22:18: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
|
directory: "/" # Location of package manifests
|
||||||
schedule:
|
schedule:
|
||||||
interval: "daily"
|
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'
|
node-version: '12'
|
||||||
- name: Autofix lockfile
|
- name: Autofix lockfile
|
||||||
run: |
|
run: |
|
||||||
|
# change directory
|
||||||
|
cd .`git log -1 --pretty=%s | awk '{ print $9 }'`
|
||||||
|
|
||||||
# restore yarn.lock from the previous commit
|
# restore yarn.lock from the previous commit
|
||||||
git checkout HEAD^ -- yarn.lock
|
git checkout HEAD^ -- yarn.lock
|
||||||
|
|
||||||
@@ -36,6 +39,7 @@ jobs:
|
|||||||
yarn deduplicate
|
yarn deduplicate
|
||||||
- name: Commit changes
|
- name: Commit changes
|
||||||
run: |
|
run: |
|
||||||
|
cd .`git log -1 --pretty=%s | awk '{ print $9 }'`
|
||||||
git add yarn.lock
|
git add yarn.lock
|
||||||
git config --global user.name 'dependabot[bot]'
|
git config --global user.name 'dependabot[bot]'
|
||||||
git config --global user.email '49699333+dependabot[bot]@users.noreply.github.com'
|
git config --global user.email '49699333+dependabot[bot]@users.noreply.github.com'
|
||||||
|
Reference in New Issue
Block a user