Files
AlphaPulse/.gitea/workflows/mirror.yml
T
eezd 549b818e95
Development CI / check-and-build (push) Successful in 33s
Development CI / deploy-development (push) Successful in 2m27s
Main CI / check-and-build (push) Successful in 27s
GitHub Git mirror / mirror (push) Successful in 5s
Fix deployment preparation recovery and unify GitHub authentication
2026-10-30 11:33:53 +08:00

35 lines
883 B
YAML

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