Skip to content

Commit 08fcf24

Browse files
committed
fix(ci): use env vars instead of template expressions in run blocks (zizmor)
1 parent 7b5e477 commit 08fcf24

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/weekly-update.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -212,14 +212,16 @@ jobs:
212212
- name: Set final status
213213
id: final
214214
if: always()
215+
env:
216+
UPDATE_SUCCESS: ${{ steps.update.outputs.success }}
217+
TESTS_RESULT: ${{ steps.tests.outputs.result }}
218+
FIX_SUCCESS: ${{ steps.claude.outputs.success }}
215219
run: |
216-
if [ "${{ steps.update.outputs.success }}" != "true" ]; then
220+
if [ "$UPDATE_SUCCESS" != "true" ]; then
217221
echo "success=false" >> $GITHUB_OUTPUT
218-
elif [ "${{ steps.tests.outputs.result }}" != "fail" ]; then
219-
# Tests passed (or were skipped) — update succeeded without needing fixes
222+
elif [ "$TESTS_RESULT" != "fail" ]; then
220223
echo "success=true" >> $GITHUB_OUTPUT
221-
elif [ "${{ steps.claude.outputs.success }}" == "true" ]; then
222-
# Tests failed but sonnet fixed them
224+
elif [ "$FIX_SUCCESS" = "true" ]; then
223225
echo "success=true" >> $GITHUB_OUTPUT
224226
else
225227
echo "success=false" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)