File tree Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Original file line number Diff line number Diff line change 44 workflow_dispatch :
55 push :
66 tags :
7- - ' *' # Trigger on all tags initially
7+ - ' *' # Trigger on all tags initially, but tag and release privilege are verified in _build-wheel-release-upload.yml
88
99jobs :
10- tag-check :
11- runs-on : ubuntu-latest
12- outputs :
13- tag_valid : ${{ steps.tag-check.outputs.tag_valid }}
14- steps :
15- - name : Extract and validate tag for (pre)-release
16- id : tag-check
17- run : |
18- TAG_NAME=${GITHUB_REF#refs/tags/}
19-
20- # Check if the tag matches the pattern, e.g. 3.1.32 or 0.1.3rc0
21- if [[ "$TAG_NAME" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || [[ "$TAG_NAME" =~ ^[0-9]+\.[0-9]+\.[0-9]+rc[0-9]+$ ]]; then
22- echo "tag_valid=true" >> $GITHUB_OUTPUT
23- fi
24-
2510 release :
26- needs : tag-check
27- if : needs.tag-check.outputs.tag_valid == 'true'
2811 permissions :
2912 contents : write
3013 uses : Billingegroup/release-scripts/.github/workflows/_build-wheel-release-upload.yml@v0
3114 with :
3215 project : diffpy.snmf
3316 secrets :
3417 PYPI_TOKEN : ${{ secrets.PYPI_TOKEN }}
18+ PAT_TOKEN : ${{ secrets.PAT_TOKEN }}
You can’t perform that action at this time.
0 commit comments