Skip to content

Commit e5555c0

Browse files
authoredOct 21, 2024··
Use PAT_TOKEN to push to main for CHANGELOG.rst (#109)
1 parent 4fb8751 commit e5555c0

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed
 

‎.github/workflows/build-wheel-release-upload.yml

+2-18
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,15 @@ on:
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

99
jobs:
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 }}

0 commit comments

Comments
 (0)
Please sign in to comment.