Skip to content

Commit 6a0dcaf

Browse files
committed
tinkering with the actions
1 parent 6cd1762 commit 6a0dcaf

File tree

1 file changed

+43
-4
lines changed

1 file changed

+43
-4
lines changed

.github/workflows/periodic_update.yml

Lines changed: 43 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,17 @@ jobs:
1414
permissions:
1515
contents: write
1616
steps:
17-
- uses: actions/checkout@v4
18-
- uses: actions/setup-python@v5
17+
- name: checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Install uv
21+
uses: astral-sh/setup-uv@v5
1922
with:
2023
python-version: '3.11'
24+
2125
- name: install dependencies
2226
run: |
23-
python -m pip install --upgrade pip
24-
pip install -r requirements.txt
27+
uv pip install -r requirements.txt
2528
- name: update
2629
env:
2730
CW_COOKIE: ${{ secrets.CW_COOKIE }}
@@ -32,3 +35,39 @@ jobs:
3235
file_pattern: 'output/*.py'
3336
branch: master
3437
commit_message: Automated update
38+
39+
update-readme:
40+
runs-on: ubuntu-latest
41+
steps:
42+
- uses: actions/checkout@v4
43+
44+
- name: Install uv
45+
uses: astral-sh/setup-uv@v5
46+
47+
- name: Install the project
48+
run: uv sync --group actions --all-extras --dev
49+
50+
- name: Install Chrome
51+
uses: browser-actions/setup-chrome@v1
52+
with:
53+
chrome-version: stable
54+
55+
- name: Install Chrome WebDriver
56+
uses: nanasess/setup-chromedriver@v2
57+
58+
- name: Start Chrome Driver
59+
run: |
60+
chromedriver --version
61+
chrome --version
62+
63+
- name: Take Screenshot
64+
env:
65+
CW_COOKIE: ${{ secrets.CW_COOKIE }}
66+
run: |
67+
uv run .github/scripts/take_screenshot.py
68+
69+
- name: Commit and Push Changes
70+
uses: stefanzweifel/git-auto-commit-action@v5
71+
with:
72+
commit_message: "Update screenshot in README"
73+
file_pattern: screenshots/*.png

0 commit comments

Comments
 (0)