Skip to content

fetch

fetch #84

Workflow file for this run

name: fetch
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
fetch:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Set up Python
run: uv python install 3.13
- name: Install dependencies
run: uv sync
- name: Update Protobufs
run: uv run python scripts/update_protobufs.py
- name: Commit and push changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add protobufs/ src/steam/utils/protobuf_manager/protobufs/
git diff --quiet && git diff --staged --quiet || (git commit -m "Update protobufs" && git push)