Update action.yml
This commit is contained in:
parent
ff6329545f
commit
f8c9d79a14
1 changed files with 11 additions and 9 deletions
20
action.yml
20
action.yml
|
@ -83,17 +83,19 @@ 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 }}"
|
||||||
git add ${{ inputs.files }} -v
|
|
||||||
git commit -m "${{ inputs.commit_message }}" $EMPTY
|
|
||||||
|
|
||||||
git branch push-and-commit-action-${{ github.run_id }}-${{ github.job }}
|
|
||||||
git fetch "${{ inputs.remote_repository }}" "$CURRENT_BRANCH"
|
|
||||||
git checkout "$CURRENT_BRANCH"
|
|
||||||
git merge 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
|
if [[ `git status --porcelain` ]]; then
|
||||||
|
git add ${{ inputs.files }} -v
|
||||||
|
git commit -m "${{ inputs.commit_message }}" $EMPTY
|
||||||
|
|
||||||
|
git branch push-and-commit-action-${{ github.run_id }}-${{ github.job }}
|
||||||
|
git fetch "${{ inputs.remote_repository }}" "$CURRENT_BRANCH"
|
||||||
|
git checkout "$CURRENT_BRANCH"
|
||||||
|
git merge push-and-commit-action-${{ github.run_id }}-${{ github.job }}
|
||||||
|
git branch -d push-and-commit-action-${{ github.run_id }}-${{ github.job }}
|
||||||
|
|
||||||
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
|
||||||
|
|
Loading…
Add table
Reference in a new issue