From 148f29475ef5b55f0c0e3c9ce5d4fe9dc7bb2162 Mon Sep 17 00:00:00 2001 From: skjnldsv Date: Tue, 29 Jul 2025 15:58:13 +0200 Subject: [PATCH] fix(workflows): don't use needs.init.outputs.head_ref directly Signed-off-by: skjnldsv --- .github/workflows/command-compile.yml | 8 ++++++-- 1 file 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