diff options
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/mirror.yml | 18 | ||||
| -rw-r--r-- | .github/workflows/validate.yml | 5 |
2 files changed, 22 insertions, 1 deletions
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: "[email protected]:ue-foundation/zen.git" + destination-repo: "[email protected]: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: |