Skip to content

testing actions

testing actions #6

Workflow file for this run

name: Update Screenshot in README
on:
push:
branches:
- master
jobs:
update-readme:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Install the project
run: uv sync --group actions --all-extras --dev
- name: Install Firefox
run: sudo apt-get update && sudo apt-get install -y firefox
- name: Install GeckoDriver
run: |
GECKODRIVER_VERSION=$(curl -s https://api.github.com/repos/mozilla/geckodriver/releases/latest | jq -r ".tag_name")
curl -L "https://github.com/mozilla/geckodriver/releases/download/$GECKODRIVER_VERSION/geckodriver-$GECKODRIVER_VERSION-linux64.tar.gz" | tar xz
sudo mv geckodriver /usr/local/bin/
- name: Take Screenshot
env:
COOKIE: ${{ secrets.COOKIE }}
run: |
uv run .github/scripts/take_screenshot.py
- name: Update README
run: |
uv run .github/scripts/update_readme.py
#
# - name: Commit and Push Changes
# run: |
# git config user.name "GitHub Actions"
# git config user.email "[email protected]"
# git add README.md screenshot.png
# git commit -m "Update screenshot in README"
# git push