From 2f87ffda00720e57a6b7a8bd66119483b50dd852 Mon Sep 17 00:00:00 2001 From: ylemkimon Date: Mon, 17 Aug 2020 13:21:52 +0900 Subject: [PATCH] ci: enable Dependabot for website, submodules, and GitHub Actions (#2424) --- .github/dependabot.yml | 14 ++++++++++++++ .github/workflows/dependabot.yml | 4 ++++ 2 files changed, 18 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index de983a50..8d94aa2e 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -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" diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml index db4485f0..00ca7252 100644 --- a/.github/workflows/dependabot.yml +++ b/.github/workflows/dependabot.yml @@ -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'