Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,15 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Assert tag is from master or release-candidate
run: git branch -a --contains $(git describe --tags) | grep -E "master|release-candidate"
run: |
if ! git merge-base --is-ancestor HEAD origin/master &&
! git merge-base --is-ancestor HEAD origin/release-candidate; then
echo "Tag must point to a commit on master or release-candidate" >&2
exit 1
fi

- name: Setup Python
uses: actions/setup-python@v7
Expand Down