From 364144ae5b1692c5a475e0e1ce09ddbab3f8a545 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Wed, 7 Aug 2024 14:46:41 +1200 Subject: [PATCH] FIX Pass dispatch_gha_autotag tag when appropriate (#69) --- scripts/cms-any/tag-patch-release.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/cms-any/tag-patch-release.php b/scripts/cms-any/tag-patch-release.php index a69e7f6..c6d6c37 100644 --- a/scripts/cms-any/tag-patch-release.php +++ b/scripts/cms-any/tag-patch-release.php @@ -31,6 +31,10 @@ latest_local_sha: \${{ inputs.latest_local_sha }} EOT; +if (is_gha_repository()) { + $content .= "\n dispatch_gha_autotag: true\n"; +} + $workflowPath = '.github/workflows/tag-patch-release.yml'; $ciPaths = [ '.github/workflows/ci.yml', '.github/workflows/action-ci.yml' ]; $shouldHaveAction = false;