From c9e2ac367a946823198e44de7e2a2523bac0a45c Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Sun, 9 Feb 2020 01:07:01 +0900 Subject: [PATCH] set git user --- .github/workflows/docs.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 598a0af..1ba6d1d 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -5,6 +5,8 @@ on: jobs: main: runs-on: ubuntu-latest + env: + EMAIL: octocat@github.com steps: - uses: actions/checkout@v1 - run: echo "::set-env name=YARN_CACHE_DIR::$(yarn cache dir)" @@ -16,10 +18,10 @@ jobs: - uses: actions/setup-node@v1 with: { node-version: 12 } - run: yarn - - run: git subtree add --prefix docs origin gh-pages + - run: git -c user.name=bot subtree add --prefix docs origin gh-pages - run: NEXT_ASSET_PREFIX=/${GITHUB_REPOSITORY#*/} yarn doc - run: git add -f docs - - run: git -c user.name=bot -c user.email=octocat@github.com commit -m github-pages + - run: git -c user.name="$(whoami)" commit -m github-pages - run: git remote add github "https://github:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" env: { GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" } - run: git subtree push --prefix docs github gh-pages