From e8a09361364b4b34c449c8dbdfeb179a070b5d65 Mon Sep 17 00:00:00 2001 From: Alexis Lucattini Date: Mon, 6 Nov 2023 17:56:46 +1100 Subject: [PATCH] Replaces #19 - squash and merge settings causing issues with history (#20) Co-authored-by: alexiswl <8197659+alexiswl@users.noreply.github.com> Fixed bump scripts (#15) --- .github/workflows/pipeline_on_tag.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pipeline_on_tag.yml b/.github/workflows/pipeline_on_tag.yml index f85a9ca..1725592 100644 --- a/.github/workflows/pipeline_on_tag.yml +++ b/.github/workflows/pipeline_on_tag.yml @@ -18,6 +18,8 @@ jobs: - name: Checkout code id: git_checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 # Get the tag based on the GITHUB REF env var - id: get_tag @@ -119,8 +121,9 @@ jobs: run: | # Get branch name raw="$( \ - git branch --remotes --contains ${{ github.ref }} \ + git branch --remotes --contains "${{ github.ref }}" \ )" + raw="${raw// /}" echo "branch_name=${raw/origin\/}" >> "${GITHUB_OUTPUT}" # Validate bump