From 7e70c79b57aed4614e0c77fe0ccc696a5724c129 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 | 22 ++++++++++++++++++++++ test.txt | 2 ++ 2 files changed, 24 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..575c2d7d7d --- /dev/null +++ b/.github/workflows/sync_public.yml @@ -0,0 +1,22 @@ +# SPDX-FileCopyrightText: Intel Corporation +# +# SPDX-License-Identifier: BSD-3-Clause + +name: "Sync repos" + +on: + push: + branches: + - mirror + +jobs: + checks: + runs-on: borealis + steps: + - uses: actions/checkout@v4 + with: + token: ${{secrets.PUBLIC_PAT}} + - run: | + git clean -x -f -e .github/workflows/sync_public.yml + git remote set-url origin https://${{secrets.USR}}:${{secrets.PUBLIC_PAT}}@github.com/haichangsi/distributed-ranges.git + git push -f 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