aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2024-03-21 15:17:30 +0100
committerGitHub Enterprise <[email protected]>2024-03-21 15:17:30 +0100
commit16affe3eaddfcb439bf3ebb6bbeea3b2d58eedcd (patch)
tree89a2834e6c635136c86c4b2e1a81929b4cd45b00 /.github/workflows
parentharden attach sponsor process (#14) (diff)
downloadzen-16affe3eaddfcb439bf3ebb6bbeea3b2d58eedcd.tar.xz
zen-16affe3eaddfcb439bf3ebb6bbeea3b2d58eedcd.zip
added action to mirror repo to github.com (#17)
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/mirror.yml18
-rw-r--r--.github/workflows/validate.yml5
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: