From 4b42f8b23bbc3b0254d9af61e67a0dbbd8f32116 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 --- .github/workflows/sync_public.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/sync_public.yml diff --git a/.github/workflows/sync_public.yml b/.github/workflows/sync_public.yml new file mode 100644 index 0000000000..8fd9661e33 --- /dev/null +++ b/.github/workflows/sync_public.yml @@ -0,0 +1,25 @@ +# SPDX-FileCopyrightText: Intel Corporation +# +# SPDX-License-Identifier: BSD-3-Clause + +name: "Sync repos" + +on: + push: + branches: + - mirror + +jobs: + checks: + runs-on: borealis + env: + PAT: ${{secrets.PAT}} + usr: ${{secrets.USR}} + steps: + - uses: actions/checkout@v4 + with: + token: ${{secrets.PAT}} + - run: | + git clean -x -f -e .github/workflows/sync_public.yml + git remote add upstream https://${{env.USR}}:${{env.PAT}}@github.com/haichangsi/distributed-ranges.git + git push --no-thin -f upstream ${{github.event.repository.default_branch}}:mirror