From 16affe3eaddfcb439bf3ebb6bbeea3b2d58eedcd Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Thu, 21 Mar 2024 15:17:30 +0100 Subject: added action to mirror repo to github.com (#17) --- .github/workflows/mirror.yml | 18 ++++++++++++++++++ .github/workflows/validate.yml | 5 ++++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/mirror.yml diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml new file mode 100644 index 000000000..b34fb45f1 --- /dev/null +++ b/.github/workflows/mirror.yml @@ -0,0 +1,18 @@ +name: Mirror all branches and tags to github.com repo + +on: [ push, delete, create ] + +# Ensures that only one mirror task will run at a time. +concurrency: + group: git-mirror + +jobs: + git-mirror: + runs-on: ubuntu-latest + steps: + - uses: ue-foundation/git-mirror-action@v1 + env: + SSH_PRIVATE_KEY: ${{ secrets.PUBLIC_GITHUB_SSHKEY }} + with: + source-repo: "git@github.ol.epicgames.net:ue-foundation/zen.git" + destination-repo: "git@github.com:EpicGames/zen.git" diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 7d242a885..c5dbafe23 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -11,12 +11,15 @@ on: paths-ignore: - 'VERSION.txt' - 'CHANGELOG.md' - push: + - '.github/workflows/create_release.yml' + - '.github/workflows/mirror.yml' + push: branches: [ main ] paths-ignore: - 'VERSION.txt' - 'CHANGELOG.md' - '.github/workflows/create_release.yml' + - '.github/workflows/mirror.yml' jobs: cancel-old-build: -- cgit v1.2.3