From 0631496810e22f69cb918aea055b006de95d13ae Mon Sep 17 00:00:00 2001 From: homalozoa Date: Wed, 18 Jan 2023 17:00:07 +0800 Subject: [PATCH] feat: init with sync job Signed-off-by: homalozoa --- .github/workflows/sync-ci.yml | 21 +++++++++++++++++++++ README.md | 8 +++++++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/sync-ci.yml diff --git a/.github/workflows/sync-ci.yml b/.github/workflows/sync-ci.yml new file mode 100644 index 00000000..64256867 --- /dev/null +++ b/.github/workflows/sync-ci.yml @@ -0,0 +1,21 @@ +name: sync_meta-virtualization +on: + schedule: + - cron: "0 */1 * * *" + workflow_dispatch: + +jobs: + repo-sync: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + persist-credentials: false + - name: repo-sync + uses: repo-sync/github-sync@v2 + with: + source_repo: "https://git.yoctoproject.org/meta-virtualization" + source_branch: "*" + destination_branch: "*" + github_token: ${{ secrets.GITHUB_TOKEN }} + sync_tags: "true" diff --git a/README.md b/README.md index 71985b0d..354b4021 100644 --- a/README.md +++ b/README.md @@ -1 +1,7 @@ -# meta-virtualization \ No newline at end of file +# meta-virtualization + +## Introduction + +It's a mirror of `meta-virtualization`. Which URL: https://git.yoctoproject.org/meta-virtualization/ + +As description in [Sync Action](.github/workflows/sync.yml), the sync action runs hourly with `all branchs` and `all tags`.