From a122e0449f391bc2cf3a2e9e662448ea1d61c3cc Mon Sep 17 00:00:00 2001 From: Yikun Jiang Date: Thu, 12 Mar 2020 11:18:42 +0800 Subject: [PATCH] Add repo mirror (#2) This patch adds the repo mirror workflow for openeuler. This action will executed in every pull request and 01:00 UTC (9:00 AM Beijing) every day. Note that we have to use the ssh to clone the kernel project, so we use the ssh clone style in here. --- .github/workflows/repo-mirror.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/repo-mirror.yml diff --git a/.github/workflows/repo-mirror.yml b/.github/workflows/repo-mirror.yml new file mode 100644 index 0000000..d1e5dfc --- /dev/null +++ b/.github/workflows/repo-mirror.yml @@ -0,0 +1,25 @@ +name: Openeuler gitee repos mirror periodic job + +on: + pull_request: + # 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/openeuler org repos to github/openeuler-mirror. + uses: Yikun/hub-mirror-action@v0.04 + with: + src: gitee/openeuler + dst: github/openeuler-mirror + dst_key: ${{ secrets.SYNC_EULER_PRIVATE_KEY }} + dst_token: ${{ secrets.SYNC_EULER_TOKEN }} + account_type: org + clone_style: ssh