Skip to content

Commit 94f3ba3

Browse files
Modify phishdestroy-check.yml to include wait logic
Updated workflow to wait for deployed site content before downloading.
1 parent eb608fd commit 94f3ba3

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

.github/workflows/phishdestroy-check.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,19 @@ jobs:
1212
- name: Download Destroylist
1313
run: curl -O https://phishdestroy.github.io/destroylist/destroylist.txt
1414

15-
- name: Download Published Site Content
16-
run: curl -sSL https://universalbit-dev.github.io/CityGenerator/ > deployed_site.html
15+
- name: Wait for deployed site and download content
16+
run: |
17+
EXPECTED='CityGenerator' # Change if there's a better unique string in your main page
18+
for i in {1..5}; do
19+
curl -sSL https://universalbit-dev.github.io/CityGenerator/ > deployed_site.html
20+
if grep -q "$EXPECTED" deployed_site.html; then
21+
echo "Found expected content in deployed site."
22+
break
23+
else
24+
echo "Expected content not found, waiting 15 seconds before retrying... (attempt $i/5)"
25+
sleep 15
26+
fi
27+
done
1728
1829
- name: Scan deployed site for phishing blocklist entries
1930
run: |

0 commit comments

Comments
 (0)