Skip to content

Commit 213e388

Browse files
authored
ci: gate release on successful doc build and validate build-ctk-ver input (#1500)
1 parent 8725e96 commit 213e388

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/build-docs.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ jobs:
4747
run:
4848
shell: bash -el {0}
4949
steps:
50+
- name: validate build-ctk
51+
run: |
52+
if [ ! "${{ inputs.build-ctk-ver }}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]; then
53+
echo "error: `build-ctk-ver` ${{ inputs.build-ctk-ver }} version does not match MAJOR.MINOR.MICRO" >&2
54+
exit 1
55+
fi
5056
- name: Checkout ${{ github.event.repository.name }}
5157
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
5258
with:

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ jobs:
135135
needs:
136136
- check-tag
137137
- determine-run-id
138+
- doc
138139
secrets: inherit
139140
uses: ./.github/workflows/release-upload.yml
140141
with:
@@ -148,6 +149,7 @@ jobs:
148149
needs:
149150
- check-tag
150151
- determine-run-id
152+
- doc
151153
environment:
152154
name: ${{ inputs.wheel-dst }}
153155
url: https://${{ (inputs.wheel-dst == 'testpypi' && 'test.') || '' }}pypi.org/p/${{ inputs.component }}/

0 commit comments

Comments
 (0)