|
|
|
|
@ -202,11 +202,15 @@ jobs:
|
|
|
|
|
|
|
|
|
|
- name: Push normally
|
|
|
|
|
if: ${{ !contains(needs.init.outputs.arg1, 'rebase') && !contains(needs.init.outputs.arg1, 'amend') }}
|
|
|
|
|
run: git push origin '${{ needs.init.outputs.head_ref }}'
|
|
|
|
|
env:
|
|
|
|
|
HEAD_REF: ${{ needs.init.outputs.head_ref }}
|
|
|
|
|
run: git push origin "$HEAD_REF"
|
|
|
|
|
|
|
|
|
|
- name: Force push
|
|
|
|
|
if: ${{ contains(needs.init.outputs.arg1, 'rebase') || contains(needs.init.outputs.arg1, 'amend') }}
|
|
|
|
|
run: git push --force-with-lease origin '${{ needs.init.outputs.head_ref }}'
|
|
|
|
|
env:
|
|
|
|
|
HEAD_REF: ${{ needs.init.outputs.head_ref }}
|
|
|
|
|
run: git push --force-with-lease origin "$HEAD_REF"
|
|
|
|
|
|
|
|
|
|
- name: Add reaction on failure
|
|
|
|
|
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
|
|
|
|
|
|