From db53982abbe5bd5b5aa66c81ae05f3734f6817de Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Wed, 26 Jun 2024 07:48:14 +0900 Subject: [PATCH] Push a commit using the built-in token --- .github/workflows/deploy.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3b1fe70..417813c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -34,12 +34,8 @@ jobs: if: github.ref == 'refs/heads/source' run: | cd build + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" git add -A git commit -m 'Reflect changed sources' - git push -f origin master - env: - GIT_COMMITTER_NAME: willnet - GIT_COMMITTER_EMAIL: netwillnet@gmail.com - GIT_AUTHOR_NAME: willnet - GIT_AUTHOR_EMAIL: netwillnet@gmail.com - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + git push -f https://${{ secrets.GITHUB_TOKEN }}@github.com/ginzarb/ginzarb.github.io.git master