All checks were successful
Code and build check / Check code (pull_request) Successful in 1m48s
Code and build check / Build with uv (pull_request) Successful in 56s
Code and build check / Check code (push) Successful in 1m49s
Code and build check / Build with uv (push) Successful in 59s
renovate / renovate (push) Successful in 56s
43 lines
1.3 KiB
YAML
43 lines
1.3 KiB
YAML
name: Fetch Data
|
|
run-name: Fetch and Write steam apps list
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '0 0 1 * *'
|
|
|
|
jobs:
|
|
build:
|
|
if: gitea.repository == 'Boria138/PortProtonQt'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: https://gitea.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
|
|
- name: Set up Python
|
|
uses: https://gitea.com/actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
|
|
with:
|
|
python-version-file: "pyproject.toml"
|
|
|
|
- name: Install system dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y xz-utils
|
|
|
|
- name: Set up dependency
|
|
run: pip install aiohttp asyncio
|
|
|
|
- name: Run get_id.py
|
|
run: python dev-scripts/get_id.py
|
|
env:
|
|
STEAM_KEY: ${{ secrets.STEAM_KEY }}
|
|
LINUX_GAMING_API_KEY: ${{ secrets.LINUX_GAMING_API_KEY }}
|
|
LINUX_GAMING_API_USERNAME: ${{ secrets.LINUX_GAMING_API_USERNAME }}
|
|
|
|
- name: Commit and push changes
|
|
env:
|
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
|
GITEA_ACTOR: ${{ gitea.actor }}
|
|
GITEA_SERVER: "git.linux-gaming.ru"
|
|
GITEA_REPOSITORY: ${{ gitea.repository }}
|
|
run: bash dev-scripts/push-to-gitea.sh
|