Gitee repos mirror periodic job #2532
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Gitee repos mirror periodic job | |
on: | |
pull_request: | |
paths: | |
- '.github/workflows/gitee-repos-mirror.yml' | |
- '!.github/workflows/spark-sync.yaml' | |
# Runs at every pull requests submitted in master branch | |
branches: [ master ] | |
schedule: | |
# Runs at 01:00 UTC (9:00 AM Beijing) every day | |
- cron: '0 1 * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Mirror the Gitee organization repos to Github. | |
uses: Yikun/[email protected] | |
with: | |
src: gitee/kunpengcompute | |
dst: github/kunpengcompute | |
dst_key: ${{ secrets.HUB_PRIVATE_KEY }} | |
dst_token: ${{ secrets.HUB_TOKEN }} | |
account_type: org | |
timeout: 600 | |
debug: true | |
force_update: true | |
static_list: "boostkit-bigdata,Spark-ml-algo-lib,Spark-graph-algo-lib,global-cache-adaptor,vmi,hmpi,Kbox,KAEdriver,KAE,KAEzip,android-qemu,goldfish-opengl,mesa,llvm,libdrm,media,xucg,hucx,ceph,bcache,global-cache-adaptor,kps,hyperscan,HW265,zstd" | |
- name: Mirror the Github organization repos to Gitee. | |
if: always() | |
uses: Yikun/[email protected] | |
with: | |
src: github/kunpengcompute | |
dst: gitee/kunpengcompute | |
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }} | |
dst_token: ${{ secrets.GITEE_TOKEN }} | |
account_type: org | |
timeout: 600 | |
debug: true | |
force_update: true | |
black_list: "mysql-server,kunpeng-mpam,hadoop,kunpengcompute.github.io,spark,spark-website,server,postgres,boostkit-bigdata,Spark-ml-algo-lib,Spark-graph-algo-lib,global-cache-adaptor,ceph-global-cache-adaptor,vmi,hmpi,Kbox,KAEdriver,KAE,KAEzip,android-qemu,goldfish-opengl,mesa,llvm,libdrm,media,xucg,hucx,ceph,bcache,global-cache-adaptor,kps,hyperscan,HW265,zstd" | |
- name: Debug repo owner | |
run: | | |
echo ${{ github.repository_owner }} | |
echo ${{ github.actor }} |