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"}