From 8c2bfc9ae470ec52263f76c0dcc2c15b8829592c Mon Sep 17 00:00:00 2001 From: Ash Davies <3853061+DrizzlyOwl@users.noreply.github.com> Date: Wed, 1 May 2024 11:58:52 +0100 Subject: [PATCH] Fix invalid reference to git ref (#467) --- .github/workflows/build-and-push-image.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-and-push-image.yml b/.github/workflows/build-and-push-image.yml index 92a6018fb..c838bc58b 100644 --- a/.github/workflows/build-and-push-image.yml +++ b/.github/workflows/build-and-push-image.yml @@ -27,13 +27,12 @@ jobs: release: ${{ steps.var.outputs.release }} checked-out-sha: ${{ steps.var.outputs.checked-out-sha }} steps: - - uses: actions/checkout@v4 - with: - ref: ${{ github.ref }} + - name: Checkout + uses: actions/checkout@v4 - id: var run: | - GIT_REF=${{ env.branch_ref }} + GIT_REF=${{ github.ref_name }} GIT_BRANCH=${GIT_REF##*/} INPUT=${{ github.event.inputs.environment }} ENVIRONMENT=${INPUT:-"development"}