diff --git a/.github/workflows/image_build_push.yml b/.github/workflows/image_build_push.yml index d3a7cae..b2be63d 100644 --- a/.github/workflows/image_build_push.yml +++ b/.github/workflows/image_build_push.yml @@ -66,8 +66,11 @@ jobs: run: | if [ "${{ github.ref_type }}" == "tag" ]; then base_ref=${{ github.event.base_ref }} - echo "Branch name: branch_name=${base_ref#refs/heads/}" - echo "branch_name=${base_ref#refs/heads/}" >> "$GITHUB_OUTPUT" + # base_ref=${{ github.event.base_ref }} + # echo "Branch name: branch_name=${base_ref#refs/heads/}" + # echo "branch_name=${base_ref#refs/heads/}" >> "$GITHUB_OUTPUT" + target_branch=${{ github.event.release.target_commitish }} + echo "branch_name=${target_branch}" >> "$GITHUB_OUTPUT" elif [ "${{ github.ref_type }}" == "branch" ]; then echo "branch_name=${GITHUB_REF##*/}" >> "$GITHUB_OUTPUT" fi