From d47a756f2f89a2c62b70336ad702a2215065212c Mon Sep 17 00:00:00 2001 From: Andrea Lamparelli Date: Mon, 11 Sep 2023 16:09:21 +0200 Subject: [PATCH] Adding mirror sync automated workflow --- .github/workflows/sync-mirror.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/sync-mirror.yaml diff --git a/.github/workflows/sync-mirror.yaml b/.github/workflows/sync-mirror.yaml new file mode 100644 index 0000000000..e240b5e03c --- /dev/null +++ b/.github/workflows/sync-mirror.yaml @@ -0,0 +1,25 @@ +name: Automatic Mirror Synchronization + +on: [push] + +jobs: + sync-mirror: + if: github.repository_owner == 'apache' + name: Sync the Kiegroup mirror + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Run the mirror sync process using git-sync-mirror + uses: addnab/docker-run-action@v3 + with: + image: enteee/git-sync-mirror:latest + options: > + --rm + --env DEBUG=true + --env SRC_REPO=${{ github.server_url }}/${{ github.repository }}.git + --env DST_REPO=${{ github.server_url }}/kiegroup/optaplanner.git + --env SRC_REPO_TOKEN=${{ secrets.GITHUB_TOKEN }} + --env DST_REPO_TOKEN=${{ secrets.KIE_PAT }} + --env ONCE=true + run: | + ./bin/git-sync-mirror.sh