diff options
author | skjnldsv <skjnldsv@protonmail.com> | 2025-07-29 15:58:13 +0200 |
---|---|---|
committer | skjnldsv <skjnldsv@protonmail.com> | 2025-07-29 15:58:16 +0200 |
commit | 148f29475ef5b55f0c0e3c9ce5d4fe9dc7bb2162 (patch) | |
tree | b1d6eb59e56cf96ec6ddc74a8682d8a5c18be049 | |
parent | 36b510a38a2dd0507d6ba0aec2f55f27aaea5cd7 (diff) | |
download | nextcloud-server-feat/drop-compile-commits-rebase.tar.gz nextcloud-server-feat/drop-compile-commits-rebase.zip |
fix(workflows): don't use needs.init.outputs.head_ref directlyfeat/drop-compile-commits-rebase
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
-rw-r--r-- | .github/workflows/command-compile.yml | 8 |
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 |