Skip to content

Commit a106fc0

Browse files
committed
add scrape workfow
1 parent 1f4a90e commit a106fc0

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: scrape-visasq
2+
3+
on:
4+
push:
5+
workflow_dispatch:
6+
schedule:
7+
- cron: "0 0 * * 3" # Every Wednesday at 00:00 UTC
8+
9+
jobs:
10+
scrape-visasq:
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 10
13+
steps:
14+
- name: Run Docker container and generate output file
15+
run: |
16+
mkdir -p assets
17+
echo "test" > assets/test.txt
18+
docker run \
19+
--rm \
20+
-v $(pwd)/assets:/app/assets \
21+
ks6088ts/workshop-playwright-python:latest \
22+
python scripts/visasq.py scrape --max-page 20
23+
24+
- name: Upload output file as artifact
25+
uses: actions/upload-artifact@v4
26+
with:
27+
name: assets
28+
path: ./assets/
29+
retention-days: 14

0 commit comments

Comments
 (0)