Skip to content

Commit 3723927

Browse files
committed
ci: fix push logic for release workflow
[skip ci]
1 parent bfc0cdd commit 3723927

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,13 @@ jobs:
114114

115115
- name: ✅ Push to remote repository
116116
env:
117-
DRY_RUN_ARGS: ${{ github.event.inputs.dryRun == 'yes' && '--dry-run' || '' }}
117+
IS_DRY_RUN: ${{ github.event.inputs.dryRun }}
118118
run: |
119-
git push origin --no-verify --follow-tags "${DRY_RUN_ARGS}"
119+
if [ "${IS_DRY_RUN}" = "yes" ]; then
120+
git push origin --no-verify --follow-tags --dry-run
121+
else
122+
git push origin --no-verify --follow-tags
123+
fi
120124
121125
- name: 📝 Create the Github Release
122126
run: |

0 commit comments

Comments
 (0)