Update action.yml

This commit is contained in:
Guillaume Falourd 2021-12-21 09:52:13 -03:00 committed by GitHub
parent ff6329545f
commit f8c9d79a14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,6 +83,8 @@ runs:
git config --local user.email "${{ inputs.email }}" git config --local user.email "${{ inputs.email }}"
git config --local user.name "${{ inputs.name }}" git config --local user.name "${{ inputs.name }}"
if [[ `git status --porcelain` ]]; then
git add ${{ inputs.files }} -v git add ${{ inputs.files }} -v
git commit -m "${{ inputs.commit_message }}" $EMPTY git commit -m "${{ inputs.commit_message }}" $EMPTY
@ -92,8 +94,8 @@ runs:
git merge push-and-commit-action-${{ github.run_id }}-${{ github.job }} git merge push-and-commit-action-${{ github.run_id }}-${{ github.job }}
git branch -d push-and-commit-action-${{ github.run_id }}-${{ github.job }} git branch -d push-and-commit-action-${{ github.run_id }}-${{ github.job }}
if [[ `git status --porcelain` ]]; then
git push "${{ inputs.remote_repository }}" "$CURRENT_BRANCH:$TARGET_BRANCH" --follow-tags $FORCE $TAGS git push "${{ inputs.remote_repository }}" "$CURRENT_BRANCH:$TARGET_BRANCH" --follow-tags $FORCE $TAGS
else else
echo "No changes" echo "No changes"
fi fi