From 62435ac70715f0f925a0db084b9ee49598e14acb Mon Sep 17 00:00:00 2001 From: albertkun Date: Fri, 15 Dec 2023 02:03:47 -0800 Subject: [PATCH] fix: gh_actions to use user email and name --- .github/workflows/copy.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/copy.yml b/.github/workflows/copy.yml index cef6ef3..5b9ba60 100644 --- a/.github/workflows/copy.yml +++ b/.github/workflows/copy.yml @@ -26,11 +26,8 @@ jobs: - name: Commit and push run: | - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - git config --local http.https://github.com/.extraheader "AUTHORIZATION: bearer ${{ secrets.PAT }}" + git config --local user.email "albertk@gmx.com" + git config --local user.name "albertkun" git add . git commit -m "[Auto] Update static files" || exit 0 # Don't fail if no changes - git push origin HEAD:dev - env: - GIT_AUTH_TOKEN: ${{ secrets.PAT }} \ No newline at end of file + git push https://x-access-token:${{ secrets.PAT }}@github.com/UNopenGIS/learning.git HEAD:dev \ No newline at end of file