diff --git a/.forgejo/workflows/daily-update.yml b/.forgejo/workflows/daily-update.yml index b1b0660..53aa315 100644 --- a/.forgejo/workflows/daily-update.yml +++ b/.forgejo/workflows/daily-update.yml @@ -28,19 +28,22 @@ jobs: echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.10' - + - name: Install Git and Python + run: | + apk update + apk add --no-cache git python3 py3-pip + ln -sf python3 /usr/bin/python + python --version + pip3 --version + - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install requests feedparser beautifulsoup4 + python3 -m pip install --upgrade pip + pip3 install --no-cache-dir requests feedparser beautifulsoup4 - name: Run incident parser script run: | - python madison_police_incidents.py + python3 madison_police_incidents.py - name: Configure Git run: |