aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/mirror_releases.yml
blob: ff2796746a7b1a4a0314e503d852611a407f54b8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Mirror Releases to Github.com
on:
  workflow_dispatch:
  
  # 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

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - 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

          # replicate a few releases if there is a backlog or is triggered manually but the intention is for this to run on each release so no need to replicate a long history
          limit: 3

          # Working around issues with releases 5.5.2 and earlier that it attempts to replicate even though they already exist
          min_version: v5.5.4
          
          # we skip replicating pre and draft releases to keep the public repo focused on the releases itself
          skip_prerelease: true
          skip_draft: true