From 39164efefc929f6ac6a83abae9704d539311e960 Mon Sep 17 00:00:00 2001 From: dkayiwa Date: Fri, 27 Feb 2026 11:51:20 +0300 Subject: [PATCH] Gate release on build, matching Bamboo stage order In Bamboo, Release was stage 3 after Build (stage 1). This adds needs: build to the release job so tests must pass before releasing. Also reverts the build job's 'if: push' condition since build now needs to run on workflow_dispatch too as a prerequisite for release. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/build-deploy-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-deploy-release.yml b/.github/workflows/build-deploy-release.yml index bf3e03be..0be4aba6 100644 --- a/.github/workflows/build-deploy-release.yml +++ b/.github/workflows/build-deploy-release.yml @@ -15,7 +15,6 @@ on: jobs: build: name: Build and Test JDK 8 - if: github.event_name == 'push' runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -60,6 +59,7 @@ jobs: release: name: Release to Maven + needs: build if: github.event_name == 'workflow_dispatch' runs-on: ubuntu-latest timeout-minutes: 120