Skip to content

Mirror

Mirror #28

Workflow file for this run

name: Mirror
on:
workflow_dispatch:
push:
branches: ["main"]
pull_request:
schedule:
- cron: "0 8 * * *"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
mirror:
permissions:
contents: write
environment:
name: mirror
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.PA_TOKEN }}
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: "pyproject.toml"
- name: Run mirroring
run: uv run tasks/mirror.py '${{ github.ref == 'refs/heads/main' }}'