aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/mirror_releases.yml
blob: bdf6e5229e36df9e6dbf250b53ee48687ce69b7e (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
name: Mirror Releases to Github.com
env:
  ACTIONS_RUNNER_DEBUG: true
on:
  workflow_dispatch:
  # run every 12 hrs
  schedule:
    - cron: "* */12 * * *"

concurrency:
  group: git-mirror-releases

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Run action
        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
          limit: 10

          # we skip replicating pre and draft releases to keep the public repo focused on the releases itself
          skip_prerelease: true
          skip_draft: true