aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorJoakim Lindqvist <[email protected]>2024-09-10 10:27:54 +0200
committerGitHub Enterprise <[email protected]>2024-09-10 10:27:54 +0200
commit1901f5ad7ce728ef5e95ad47d6803f13ef7b9f07 (patch)
treedbf970c4a1358f69bc701deaa19ac2af8a7db651 /.github/workflows
parent5.5.7-pre1 (diff)
downloadzen-1901f5ad7ce728ef5e95ad47d6803f13ef7b9f07.tar.xz
zen-1901f5ad7ce728ef5e95ad47d6803f13ef7b9f07.zip
Replicate releases on new release creation (#150)
* Ignore changes to the mirror_releases script * Only trigger release mirroring when new releases are made * Added a minimum release number to workaround issues with certain older releases * Lowered number of releases that are replicated
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/mirror_releases.yml15
-rw-r--r--.github/workflows/validate.yml2
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: