-
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (29 loc) · 933 Bytes
/
fetch.yml
File metadata and controls
37 lines (29 loc) · 933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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)