diff options
| -rw-r--r-- | .github/workflows/mirror_releases.yml | 15 | ||||
| -rw-r--r-- | .github/workflows/validate.yml | 2 |
2 files changed, 11 insertions, 6 deletions
diff --git a/.github/workflows/mirror_releases.yml b/.github/workflows/mirror_releases.yml index bdf6e5229..6feaa74bf 100644 --- a/.github/workflows/mirror_releases.yml +++ b/.github/workflows/mirror_releases.yml @@ -1,11 +1,9 @@ name: Mirror Releases to Github.com -env: - ACTIONS_RUNNER_DEBUG: true on: workflow_dispatch: - # run every 12 hrs - schedule: - - cron: "* */12 * * *" + + release: + types: [released] concurrency: group: git-mirror-releases @@ -26,8 +24,13 @@ jobs: dest_repo_github_api_url: https://api.github.com copy_assets: true - limit: 10 + # 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
\ No newline at end of file diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 63f49b70a..7487297f4 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -16,6 +16,7 @@ on: - 'VERSION.txt' - 'CHANGELOG.md' - '.github/workflows/create_release.yml' + - '.github/workflows/mirror_releases.yml' - '.github/workflows/mirror.yml' push: branches: @@ -24,6 +25,7 @@ on: - 'VERSION.txt' - 'CHANGELOG.md' - '.github/workflows/create_release.yml' + - '.github/workflows/mirror_releases.yml' - '.github/workflows/mirror.yml' jobs: |