From d442f5eeff3fc57ad76222c2e49cf006b0ef2e48 Mon Sep 17 00:00:00 2001 From: Lukas Klingsbo Date: Thu, 9 Nov 2023 16:19:08 +0100 Subject: [PATCH] Use GITHUB_ACTOR for pushing tags --- action.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/action.yml b/action.yml index a01f996..d93e5fb 100644 --- a/action.yml +++ b/action.yml @@ -49,15 +49,12 @@ runs: - name: Add melos to PATH run: command -v melos || echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH shell: bash - - name: Set git config + - name: Run melos version (dry run) if: ${{ inputs.version == 'true' }} run: | git config --global user.email "${{ inputs.git-email }}" git config --global user.name "${{ inputs.git-username }}" - shell: bash - - name: Run melos version (dry run) - if: ${{ inputs.version == 'true' }} - run: melos version --yes --no-git-tag-version + melos version --yes --no-git-tag-version shell: bash - name: Run melos publish (dry run) if: ${{ inputs.publish-dry-run == 'true' }} @@ -76,5 +73,8 @@ runs: shell: bash - name: Push tags to repository if: ${{ inputs.publish == 'true' }} - run: git push --tags + run: | + git config user.name "${GITHUB_ACTOR}" + git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" + git push --tags shell: bash