From e64ff28ce458db756ff00ea105f7bea754374900 Mon Sep 17 00:00:00 2001 From: MartinWheelerMT Date: Wed, 28 May 2025 15:08:21 +0100 Subject: [PATCH] Fix issue with `main` branch reference * For NHAIS the `main` branch is currently `develop` but this is not correctly referenced when generating buildId. --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 52c92d46..eb95bb04 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -37,8 +37,8 @@ jobs: if [[ "${{ github.event_name }}" == "pull_request" ]]; then GIT_BRANCH=PR - elif [[ "${{ github.event_name }}" == "push" && "${{ github.ref }}" == "refs/heads/main" ]]; then - GIT_BRANCH=main + elif [[ "${{ github.event_name }}" == "push" && "${{ github.ref }}" == "refs/heads/develop" ]]; then + GIT_BRANCH=develop fi BUILD_ID=$(./create_build_id.sh $GIT_BRANCH ${{ github.run_number }} ${{ github.sha }})