From b4d1e93ede2bbd7ce80de047e09599932188e912 Mon Sep 17 00:00:00 2001 From: Nogic <24802730+nogic1008@users.noreply.github.com> Date: Sun, 5 May 2024 15:43:31 +0900 Subject: [PATCH] refactor(ci): use variables on commiter name & email --- .github/workflows/nodejs.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 029c9d3e..03a074a7 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -185,8 +185,8 @@ jobs: - name: Commit and Push continue-on-error: true run: | - git config user.name github-actions[bot] - git config user.email 41898282+github-actions[bot]@users.noreply.github.com + git config user.name ${{ vars.GH_ACTIONS_COMMIT_NAME }} + git config user.email ${{ vars.GH_ACTIONS_COMMIT_EMAIL }} git add . git commit -m "build: deploy via ${{ github.sha }}" git push diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 67be7a5c..66fa197a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,8 +21,8 @@ jobs: - name: Push Git Tag (Major, Minor) run: | - git config user.name github-actions[bot] - git config user.email 41898282+github-actions[bot]@users.noreply.github.com + git config user.name ${{ vars.GH_ACTIONS_COMMIT_NAME }} + git config user.email ${{ vars.GH_ACTIONS_COMMIT_EMAIL }} git tag ${{ steps.version.outputs.major }} git tag ${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }} git push --tags --force