aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/command-compile.yml8
1 files changed, 6 insertions, 2 deletions
diff --git a/.github/workflows/command-compile.yml b/.github/workflows/command-compile.yml
index e8878779dcc..7b74107f928 100644
--- a/.github/workflows/command-compile.yml
+++ b/.github/workflows/command-compile.yml
@@ -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