Skip to content

Commit 2cbd7fa

Browse files
committed
added quality gate to release action
Signed-off-by: René <snooz@posteo.de>
1 parent 3a6937a commit 2cbd7fa

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/release-pages.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,22 @@ jobs:
1818
ref: ${{ github.event.release.tag_name }}
1919
fetch-depth: 0
2020

21+
- name: Verify matching versioned docs exist
22+
shell: bash
23+
run: |
24+
RELEASE_TAG="${{ github.event.release.tag_name }}"
25+
DOCS_DIR="website/versioned_docs/${RELEASE_TAG}"
26+
27+
if [[ ! -d "${DOCS_DIR}" ]]; then
28+
echo "::error::Missing docs snapshot for release tag '${RELEASE_TAG}'."
29+
echo "Expected directory: ${DOCS_DIR}"
30+
echo "Available directories in website/versioned_docs:"
31+
ls -1 website/versioned_docs || true
32+
exit 1
33+
fi
34+
35+
echo "Found matching docs directory: ${DOCS_DIR}"
36+
2137
- name: Use Node.js
2238
uses: actions/setup-node@v4
2339
with:

0 commit comments

Comments
 (0)