Skip to content

Commit

Permalink
Add repo mirror (#2)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Yikun authored Mar 12, 2020
1 parent 4c9e896 commit a122e04
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/repo-mirror.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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

0 comments on commit a122e04

Please sign in to comment.