Files
RawMark/.gitea/workflows/mirror.yml
T
eezd 78e463b4fa
Development CI / check-and-package (push) Successful in 3m53s
GitHub Git mirror / mirror (push) Successful in 6s
Main CI / check-and-package (pull_request) Successful in 3m50s
Development CI / image (push) Successful in 19s
Main CI / image (pull_request) Successful in 12s
Development CI / deploy-development (push) Successful in 11s
ci: use the account-level GitHub token
2026-10-30 09:50:43 +08:00

36 lines
964 B
YAML

name: GitHub Git mirror
on:
push:
branches: ['**']
tags: ['**']
create:
delete:
schedule:
- cron: '17 * * * *'
workflow_dispatch:
permissions:
contents: read
concurrency:
group: rawmark-github-mirror
cancel-in-progress: false
jobs:
mirror:
if: vars.RAWMARK_MIRROR_ENABLED == 'true'
runs-on: docker
timeout-minutes: 15
container:
image: docker:29-cli
volumes:
- /docker/gitea/mirrors/RawMark:/docker/gitea/mirrors/RawMark
steps:
- name: Install mirror runtimes
run: apk add --no-cache nodejs python3 git git-lfs
- uses: https://github.com/actions/checkout@11d5960a326750d5838078e36cf38b85af677262
with:
ref: main
persist-credentials: false
- name: Reconcile current source references
env:
GITHUB_MIRROR_TOKEN: ${{ secrets.ALL_GITHUB_TOKEN }}
run: python3 scripts/mirror.py --directory /docker/gitea/mirrors/RawMark