aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoakim Lindqvist <[email protected]>2024-09-16 16:52:50 +0200
committerGitHub Enterprise <[email protected]>2024-09-16 16:52:50 +0200
commit37bc61f2031731022c82e0ae2689d1c7f0182ff3 (patch)
tree7e7e249407bfd3db8faca98851f9d3996fd189e7
parent5.5.7 (diff)
downloadzen-37bc61f2031731022c82e0ae2689d1c7f0182ff3.tar.xz
zen-37bc61f2031731022c82e0ae2689d1c7f0182ff3.zip
Running the public github release mirroring as part of creating the release (#158)
* Running the public github release mirroring as part of creating the release This because workflows does not trigger events when created using the built in GITHUB_TOKEN so the release we create does not trigger the release replication workflow.
-rw-r--r--.github/workflows/create_release.yml23
-rw-r--r--.github/workflows/mirror_releases.yml7
2 files changed, 27 insertions, 3 deletions
diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml
index c7aee4ae4..10b772ea7 100644
--- a/.github/workflows/create_release.yml
+++ b/.github/workflows/create_release.yml
@@ -257,3 +257,26 @@ jobs:
- name: Finalize Release in Sentry
run: |
scripts/sentry-cli --auth-token ${{ secrets.SENTRY_API_KEY }} releases finalize --org to --project zen-server ${{steps.read_version.outputs.content}}
+
+ - name: Replicate release to public github
+ uses: ue-foundation/[email protected]
+ with:
+ token: ${{ secrets.ZEN_RELEASE_GITHUB_EE_TOKEN }}
+ src_repo: ue-foundation/zen
+ src_repo_github_api_url: https://api.github.ol.epicgames.net
+
+ dest_token: ${{ secrets.ZEN_RELEASE_GITHUB_TOKEN }}
+ dest_repo: EpicGames/zen
+ dest_repo_github_api_url: https://api.github.com
+
+ copy_assets: true
+
+ # only replicate the given release
+ limit: 1
+
+ # Set the minimum version to accept to the release we just created, in combination with only replicating one release this should only replicate the release we just made
+ min_version: v${{steps.read_version.outputs.content}}
+
+ # we skip replicating pre and draft releases to keep the public repo focused on the releases itself
+ skip_prerelease: true
+ skip_draft: true
diff --git a/.github/workflows/mirror_releases.yml b/.github/workflows/mirror_releases.yml
index 6feaa74bf..27e1e8135 100644
--- a/.github/workflows/mirror_releases.yml
+++ b/.github/workflows/mirror_releases.yml
@@ -1,9 +1,10 @@
name: Mirror Releases to Github.com
on:
workflow_dispatch:
-
- release:
- types: [released]
+
+ # Releases created by the GITHUB_TOKEN does not trigger workflow events like this, as such we also run this action within the create_release workflow
+ #release:
+ # types: [released]
concurrency:
group: git-mirror-releases