diff --git a/.github/workflows/image_build_push.yml b/.github/workflows/image_build_push.yml index aacfc69..e644656 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