ci: enable Dependabot for website, submodules, and GitHub Actions (#2424)

This commit is contained in:
ylemkimon
2020-08-17 13:21:52 +09:00
committed by GitHub
parent 1825aaf040
commit 2f87ffda00
2 changed files with 18 additions and 0 deletions

View File

@@ -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"

View File

@@ -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'