Skip to content

Update Checker

Update Checker #49966

Workflow file for this run

name: Update Checker
on:
schedule:
- cron: "*/5 * * * *"
workflow_dispatch:
jobs:
check-updates:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@main
- name: Set up Python
uses: actions/setup-python@main
with:
python-version: "3.11"
- name: Install python dependencies
## Ref: https://github.com/astral-sh/uv/issues/1386
run: |
pip install uv
uv venv .venv
echo "VIRTUAL_ENV=.venv" >> $GITHUB_ENV
echo "$PWD/.venv/bin" >> $GITHUB_PATH
uv pip install -r requirements.txt
- name: Check for updates
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
python scripts/check_updates.py "${{ github.repository }}"
- name: Commit Monitored Patches DL file
uses: stefanzweifel/git-auto-commit-action@master
with:
# Using a different branch to not clutter the default one with the commits.
# Make sure that your branch doesn't get replaced or deleted otherwise
# the Update Checker won't work as it should.
branch: check-updates
create_branch: true
skip_checkout: true
file_pattern: "scripts/monitored-patches.json changelog.md"
commit_options: "--allow-empty"
commit_message: ⬆️ Fetched updates for patches dl
push_options: "--force"