Skip to content

Commit

Permalink
Update branch name extraction for tag builds (#608)
Browse files Browse the repository at this point in the history
* Remove leading whitespace from branch name in workflow for tag build

* Filter branches and specify format when using git branch in workflow
  • Loading branch information
oliverholworthy committed Feb 3, 2023
1 parent be4ff73 commit a511948
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ jobs:
branch=main
if [[ $ref_type == "tag"* ]]
then
raw=$(git branch -r --contains ${{ github.ref_name }})
branch=${raw/origin\/}
branch=$(git branch -r --contains ${{ github.ref_name }} --list '*release*' --format "%(refname:short)" | sed -e 's/^origin\///')
fi
tox -e test-cpu -- $branch
- name: Generate package for pypi
Expand Down

0 comments on commit a511948

Please sign in to comment.