diff --git a/.github/workflows/detect_api_changes.yml b/.github/workflows/detect_api_changes.yml index 95558a9612..6a59d772eb 100644 --- a/.github/workflows/detect_api_changes.yml +++ b/.github/workflows/detect_api_changes.yml @@ -35,7 +35,7 @@ jobs: NEW="${{ env.source }}~${{ env.githubRepo }}" # Release branches get compared to the last tag instead of the target branch - if [[ "${{ github.head_ref || env.noTargetBranch }}" == release/* ]] + if [[ "${{ env.targetBranchName || env.noTargetBranch }}" == release/* ]] then LATEST_TAG="$(git describe --tags --abbrev=0)" OLD="$LATEST_TAG~${{ env.githubRepo }}"