From 9e0cd7397882529c932a56ca266676f78f869386 Mon Sep 17 00:00:00 2001 From: Yikun Jiang Date: Fri, 17 Jan 2020 15:12:25 +0800 Subject: [PATCH 1/2] Add Gitee repos mirror periodic job Add Gitee repos mirror periodic job in Kunpeng --- .github/workflows/gitee-repos-mirror.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/gitee-repos-mirror.yml diff --git a/.github/workflows/gitee-repos-mirror.yml b/.github/workflows/gitee-repos-mirror.yml new file mode 100644 index 0000000..3af84df --- /dev/null +++ b/.github/workflows/gitee-repos-mirror.yml @@ -0,0 +1,22 @@ +name: Gitee repos mirror periodic job + +on: + 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 Github organization repos to Gitee. + uses: Yikun/gitee-mirror-action@v0.01 + with: + # private SSH key + private_key: ${{ secrets.GITEE_PRIVATE_KEY }} + # org name in Github. Such as `kunpengcompute`. + github_org: kunpengcompute + # org name in Gitee. Such as `kunpengcompute`. + gitee_org: kunpengcompute From c711d7bd40d9da07ec74a82ae3b894e5735bacab Mon Sep 17 00:00:00 2001 From: Yikun Jiang Date: Fri, 17 Jan 2020 15:21:39 +0800 Subject: [PATCH 2/2] Update gitee-repos-mirror.yml --- .github/workflows/gitee-repos-mirror.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/gitee-repos-mirror.yml b/.github/workflows/gitee-repos-mirror.yml index 3af84df..d80c8dc 100644 --- a/.github/workflows/gitee-repos-mirror.yml +++ b/.github/workflows/gitee-repos-mirror.yml @@ -1,6 +1,7 @@ name: Gitee repos mirror periodic job on: + push: schedule: # Runs at 01:00 UTC (9:00 AM Beijing) every day - cron: '0 1 * * *'