-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Update action to set git config
- Loading branch information
Showing
1 changed file
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: '[email protected]' | ||
git-username: | ||
description: 'The name to use when committing changes' | ||
required: false | ||
default: 'Melos Action' | ||
runs: | ||
using: composite | ||
steps: | ||
|
@@ -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 | ||
|