We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e2e37e commit d1bbd82Copy full SHA for d1bbd82
1 file changed
.github/workflows/build.yml
@@ -70,7 +70,13 @@ jobs:
70
- name: Describe Tag & Branch Name
71
id: build_names
72
run: |
73
- echo TAG_NAME=${GITHUB_REF#refs/tags/} >> $GITHUB_OUTPUT
+ # Only set TAG_NAME if the event is a tag push
74
+ if [[ "${GITHUB_REF}" == refs/tags/* ]]; then
75
+ echo TAG_NAME=${GITHUB_REF#refs/tags/} >> $GITHUB_OUTPUT
76
+ else
77
+ echo "This event is not a tag push. Skipping sdist build."
78
+ exit 1 # Exit if not a tag
79
+ fi
80
81
- name: Build sdist
82
@@ -82,7 +88,7 @@ jobs:
88
mkdir app
83
89
cp -r ../app/tng app
84
90
python -m pip install --upgrade pip
85
- pip install build
91
+ python -m pip install build
86
92
python -m build
87
93
env:
94
TAG_NAME: ${{ steps.build_names.outputs.TAG_NAME }}
0 commit comments