File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -187,9 +187,10 @@ jobs:
187
187
run : |
188
188
DRY_RUN_OUTPUT=$(python scripts/audio_pipeline.py --task posts --n 2 --dry_run)
189
189
echo "$DRY_RUN_OUTPUT"
190
- FILES_TO_PROCESS=$(echo "$DRY_RUN_OUTPUT" | grep "Total Markdown files to process" | awk '{print $8}')
190
+ FILES_PROCESSED=$(echo "$DRY_RUN_OUTPUT" | grep "Processing complete!" | awk '{print $3}' | cut -d'/' -f1)
191
+ TOTAL_FILES=$(echo "$DRY_RUN_OUTPUT" | grep "Processing complete!" | awk '{print $3}' | cut -d'/' -f2)
191
192
192
- if [[ "$FILES_TO_PROCESS " -gt 0 ]]; then
193
+ if [[ "$FILES_PROCESSED " -gt 0 && "$FILES_PROCESSED" -eq "$TOTAL_FILES" ]]; then
193
194
echo "audio_updated=true" >> "$GITHUB_OUTPUT"
194
195
else
195
196
echo "audio_updated=false" >> "$GITHUB_OUTPUT"
You can’t perform that action at this time.
0 commit comments