Skip to content

Commit 0d0a528

Browse files
committed
Add logs for github action
1 parent aabcbce commit 0d0a528

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/update.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,17 @@ jobs:
2626
- name: Run scraper
2727
run: node index.js
2828

29+
- name: Check if debug files exist
30+
id: debug_check
31+
run: |
32+
if [[ -f debug.html || -f screenshot.png ]]; then
33+
echo "found=true" >> $GITHUB_OUTPUT
34+
else
35+
echo "found=false" >> $GITHUB_OUTPUT
36+
fi
37+
2938
- name: Upload debug files
30-
if: always()
39+
if: steps.debug_check.outputs.found == 'true'
3140
uses: actions/upload-artifact@v4
3241
with:
3342
name: debug-artifacts

0 commit comments

Comments
 (0)