Skip to content

Automatic update

Automatic update #198

name: Automatic update
on:
workflow_dispatch:
schedule:
- cron: '25 0 * * 1'
jobs:
auto-update:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- name: Setup Python uv
uses: astral-sh/setup-uv@v5
with:
python-version: "3.12"
enable-cache: true
cache-dependency-glob: "**/pyproject.toml"
- name: Setup java
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"
cache: "gradle"
cache-dependency-path: |
libs/PlatformTools/*.gradle*
libs/PlatformTools/**/gradle-wrapper.properties
- name: Run scripts
run: uv run src/main.py
- name: Push updates
uses: GuillaumeFalourd/git-commit-push@v1.3
with:
commit_message: Automatic update ${{ steps.date.outputs.date }}