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/gha-clone-releases@v1.9.0 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