diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c23276e975..92ec403ece 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,7 +23,7 @@ jobs: # Given a tag, determine what branch we are on, so we can bump dependencies (or not) - name: Get Branch run: | - BRANCHES=$(git branch -r --contains ${{ github.ref }}) + BRANCHES=$(git branch -r --contains ${{ github.ref }} | grep -v 'HEAD') echo "BRANCHES is '${BRANCHES}'" # Check for no branches explicitly...Otherwise echo adds a newline so wc thinks there's # one branch. And echo -n makes it appears that there's one less branch than there