File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 :
You can’t perform that action at this time.
0 commit comments