From 470ede2998969910e1dc9288ea69b3518019d5a5 Mon Sep 17 00:00:00 2001 From: Kacper Stefanski Date: Thu, 28 Dec 2023 15:45:55 +0100 Subject: [PATCH] added a wf to sync with the public repo test new test --- .github/workflows/sync_public.yml | 24 ++++++++++++++++++++++++ test.txt | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 .github/workflows/sync_public.yml create mode 100644 test.txt diff --git a/.github/workflows/sync_public.yml b/.github/workflows/sync_public.yml new file mode 100644 index 0000000000..918fad88a4 --- /dev/null +++ b/.github/workflows/sync_public.yml @@ -0,0 +1,24 @@ +# SPDX-FileCopyrightText: Intel Corporation +# +# SPDX-License-Identifier: BSD-3-Clause + +name: "Sync repos" + +on: + push: + branches: + - mirror + +jobs: + checks: + runs-on: borealis + steps: + - run: | + git rm -r --cached . + - uses: actions/checkout@v4 + with: + token: ${{secrets.PUBLIC_PAT}} + - run: | + git remote set-url origin https://${{secrets.USR}}:${{secrets.PUBLIC_PAT}}@github.com/haichangsi/distributed-ranges.git + git rebase origin/mirror + git push -u origin HEAD:mirror diff --git a/test.txt b/test.txt new file mode 100644 index 0000000000..4300f6e671 --- /dev/null +++ b/test.txt @@ -0,0 +1,2 @@ +abcdefgh +afsadsadsafsafsad \ No newline at end of file