Skip to content

Commit

Permalink
fix: Use configured git username and email
Browse files Browse the repository at this point in the history
  • Loading branch information
spydon committed Nov 9, 2023
1 parent d442f5e commit 60a197d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,15 @@ runs:
- name: Add melos to PATH
run: command -v melos || echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH
shell: bash
- name: Run melos version (dry run)
if: ${{ inputs.version == 'true' }}
- name: Set git config
if: ${{ inputs.publish == 'true' || inputs.publish-dry-run == 'true' }}
run: |
git config --global user.email "${{ inputs.git-email }}"
git config --global user.name "${{ inputs.git-username }}"
melos version --yes --no-git-tag-version
shell: bash
- name: Run melos version (dry run)
if: ${{ inputs.version == 'true' }}
run: melos version --yes --no-git-tag-version
shell: bash
- name: Run melos publish (dry run)
if: ${{ inputs.publish-dry-run == 'true' }}
Expand All @@ -73,8 +76,5 @@ runs:
shell: bash
- name: Push tags to repository
if: ${{ inputs.publish == 'true' }}
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git push --tags
run: git push --tags
shell: bash

0 comments on commit 60a197d

Please sign in to comment.