Skip to content

Commit 0a711c6

Browse files
Update release workflow
1 parent 71a0351 commit 0a711c6

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

.github/workflows/release.yml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,6 @@ jobs:
2121
steps:
2222
- name: Checkout
2323
uses: actions/checkout@v4
24-
with:
25-
fetch-depth: 0
26-
27-
- name: Ensure the tag points to master
28-
shell: bash
29-
run: |
30-
set -euo pipefail
31-
echo "Tag ref: ${GITHUB_REF} (name: ${GITHUB_REF_NAME}), SHA: ${GITHUB_SHA}"
32-
# Fetch master to check ancestry
33-
git fetch --no-tags --prune --depth=1 origin master
34-
if git merge-base --is-ancestor "${GITHUB_SHA}" origin/master; then
35-
echo "Tag commit is an ancestor of origin/master. Proceeding."
36-
else
37-
if git merge-base --is-ancestor origin/master "${GITHUB_SHA}"; then
38-
echo "origin/master is an ancestor of tag commit. Proceeding."
39-
else
40-
echo "Error: The tag ${GITHUB_REF_NAME} does not point to a commit based on the latest master."
41-
exit 1
42-
fi
43-
4424
- name: Set up Python
4525
uses: actions/setup-python@v5
4626
with:

0 commit comments

Comments
 (0)