From cde9597c092a7b900d3cbc85a61ddef300594138 Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Tue, 11 Aug 2026 16:35:03 +0200 Subject: [PATCH] fix(release): run support image workflows on main --- .github/workflows/coolify-helper.yml | 2 +- .github/workflows/coolify-realtime.yml | 2 +- tests/Unit/ProductionImageWorkflowTest.php | 6 ++---- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/coolify-helper.yml b/.github/workflows/coolify-helper.yml index 1a8725d1c..06c5f9eb3 100644 --- a/.github/workflows/coolify-helper.yml +++ b/.github/workflows/coolify-helper.yml @@ -2,7 +2,7 @@ name: Coolify Helper Image on: push: - branches: [ "v4.x" ] + branches: [ "v4.x", "main" ] paths: - .github/workflows/coolify-helper.yml - docker/coolify-helper/Dockerfile diff --git a/.github/workflows/coolify-realtime.yml b/.github/workflows/coolify-realtime.yml index b353f99ad..cfcf8f200 100644 --- a/.github/workflows/coolify-realtime.yml +++ b/.github/workflows/coolify-realtime.yml @@ -2,7 +2,7 @@ name: Coolify Realtime on: push: - branches: [ "v4.x" ] + branches: [ "v4.x", "main" ] paths: - .github/workflows/coolify-realtime.yml - docker/coolify-realtime/** diff --git a/tests/Unit/ProductionImageWorkflowTest.php b/tests/Unit/ProductionImageWorkflowTest.php index 0c8c593c8..bbf95542d 100644 --- a/tests/Unit/ProductionImageWorkflowTest.php +++ b/tests/Unit/ProductionImageWorkflowTest.php @@ -44,12 +44,10 @@ it('requires a reviewed draft release before building a stable version', functio ->not->toContain('generate-notes'); }); -it('runs production support workflows only from v4.x', function (string $workflowFile) { +it('keeps support image workflows ready for the production branch rename', function (string $workflowFile) { $workflow = file_get_contents(dirname(__DIR__, 2)."/.github/workflows/{$workflowFile}"); - expect($workflow) - ->toContain('branches: [ "v4.x" ]') - ->not->toContain('"main"'); + expect($workflow)->toContain('branches: [ "v4.x", "main" ]'); })->with([ 'helper' => 'coolify-helper.yml', 'realtime' => 'coolify-realtime.yml',