From b91a1244f120f1fc909703447be9f05119308aa2 Mon Sep 17 00:00:00 2001 From: Interested Deving Date: Mon, 8 Jun 2026 03:00:36 -0700 Subject: [PATCH 1/2] ci: add mirror-osp-to-ooc.yaml [auto] --- .github/workflows/mirror-osp-to-ooc.yaml | 45 ++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/mirror-osp-to-ooc.yaml diff --git a/.github/workflows/mirror-osp-to-ooc.yaml b/.github/workflows/mirror-osp-to-ooc.yaml new file mode 100644 index 0000000..b783c71 --- /dev/null +++ b/.github/workflows/mirror-osp-to-ooc.yaml @@ -0,0 +1,45 @@ +name: Mirror to OpenOS-Project-Ecosystem-OOC + +# Sync chain: +# Interested-Deving-1896 ->(upstream mirror.yaml)-> OpenOS-Project-OSP +# OpenOS-Project-OSP ->(this file)-> OpenOS-Project-Ecosystem-OOC + +on: + push: + branches: ["**"] + tags: ["**"] + schedule: + # Runs 15 minutes after the upstream->OSP sync to allow OSP to settle + - cron: "15 * * * *" + workflow_dispatch: + +jobs: + mirror: + runs-on: ubuntu-latest + # Only run when executing in the OSP repo — no-op if mirrored elsewhere + if: github.repository == 'OpenOS-Project-OSP/pkg-kde-dev-scripts' + steps: + - name: Checkout full history + uses: actions/checkout@v4 + with: + fetch-depth: 0 + persist-credentials: false + + - name: Fetch all branches and tags + run: git fetch --all --tags --prune + + - name: Push mirror to OpenOS-Project-Ecosystem-OOC + env: + MIRROR_TOKEN: ${{ secrets.MIRROR_TOKEN }} + run: | + git config --global credential.helper store + printf 'https://x-access-token:%s@github.com\n' "$MIRROR_TOKEN" \ + > ~/.git-credentials + + git remote add mirror \ + "https://github.com/OpenOS-Project-Ecosystem-OOC/pkg-kde-dev-scripts.git" + + git push mirror --all --force + git push mirror --tags --force + + rm -f ~/.git-credentials From a078d6d89070b816d4f6a2d4ec2d41845d816f31 Mon Sep 17 00:00:00 2001 From: Interested Deving Date: Mon, 8 Jun 2026 04:00:07 -0700 Subject: [PATCH 2/2] chore(deps): update workflow dependencies in mirror-osp-to-ooc.yaml --- .github/workflows/mirror-osp-to-ooc.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/mirror-osp-to-ooc.yaml b/.github/workflows/mirror-osp-to-ooc.yaml index b783c71..94a8a3c 100644 --- a/.github/workflows/mirror-osp-to-ooc.yaml +++ b/.github/workflows/mirror-osp-to-ooc.yaml @@ -20,7 +20,7 @@ jobs: if: github.repository == 'OpenOS-Project-OSP/pkg-kde-dev-scripts' steps: - name: Checkout full history - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: fetch-depth: 0 persist-credentials: false @@ -42,4 +42,4 @@ jobs: git push mirror --all --force git push mirror --tags --force - rm -f ~/.git-credentials + rm -f ~/.git-credentials \ No newline at end of file