Skip to content

Commit

Permalink
fix: Update action to set git config
Browse files Browse the repository at this point in the history
  • Loading branch information
spydon committed Nov 9, 2023
1 parent 511e139 commit da63486
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ inputs:
description: 'Whether packages should be versioned and published to pub.dev (default: false)'
required: false
default: 'false'
git-email:
description: 'The email to use when committing changes'
required: false
default: 'contact@blue-fire.xyz'
git-username:
description: 'The name to use when committing changes'
required: false
default: 'Melos Action'
runs:
using: composite
steps:
Expand All @@ -33,8 +41,14 @@ runs:
- name: Add melos to PATH
run: command -v melos || echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH
shell: bash
- 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 }}"
shell: bash
- name: Run melos version
if: ${{ inputs.publish == 'true' }}
if: ${{ inputs.publish == 'true' || inputs.publish-dry-run == 'true' }}
run: melos version --yes
shell: bash
- name: Run melos publish -y --dry-run
Expand Down

0 comments on commit da63486

Please sign in to comment.