Skip to content

Commit b23ed6f

Browse files
committed
ci(gh-pages): update workflow configuration
1 parent 73799cd commit b23ed6f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/gh-pages.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,10 @@ jobs:
187187
run: |
188188
DRY_RUN_OUTPUT=$(python scripts/audio_pipeline.py --task posts --n 2 --dry_run)
189189
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)
191192
192-
if [[ "$FILES_TO_PROCESS" -gt 0 ]]; then
193+
if [[ "$FILES_PROCESSED" -gt 0 && "$FILES_PROCESSED" -eq "$TOTAL_FILES" ]]; then
193194
echo "audio_updated=true" >> "$GITHUB_OUTPUT"
194195
else
195196
echo "audio_updated=false" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)