Skip to content

Commit cba3cd0

Browse files
committed
.github: Fix typo in calculation of previous attempt in test workflow.
Correct the calculation of the previous attempt value in the Eden test workflow. This change ensures that the PREV_ATTEMPT variable is properly set using shell arithmetic, preventing errors in job execution logic. Signed-off-by: Nikolay Martyanov <nikolay@zededa.com>
1 parent 7df0877 commit cba3cd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,8 +457,8 @@ jobs:
457457
env:
458458
GITHUB_TOKEN: ${{ github.token }}
459459
FULL_JOB_NAME: ${{ env.JOB_NAME }}
460-
PREV_ATTEMPT: ${{ github.run_attempt - 1 }}
461460
run: |
461+
PREV_ATTEMPT=$((${{ github.run_attempt }} - 1 ))
462462
# For the first attempt, we don't need to check the previous attempt, just set conclusion to 'skipped'
463463
if [ "$PREV_ATTEMPT" -le 0 ]; then
464464
echo "conclusion=skipped" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)