Skip to content

Commit 79bb38c

Browse files
edburnsCopilot
andcommitted
Remove MONOREPO_READ_TOKEN validation step — monorepo is public
Also fix version validation: the 'version' input is a bare version string (e.g. 1.0.0-beta-10-java.5), not a tag. Validate monorepo_tag instead. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent dad47f3 commit 79bb38c

1 file changed

Lines changed: 10 additions & 13 deletions

File tree

.github/workflows/deploy-site.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,26 +35,23 @@ jobs:
3535
name: github-pages
3636
url: ${{ steps.deployment.outputs.page_url }}
3737
steps:
38-
# 0. Validate required secrets and inputs
39-
- name: Validate inputs and secrets
40-
env:
41-
MONOREPO_READ_TOKEN: ${{ secrets.MONOREPO_READ_TOKEN }}
38+
# 0. Validate inputs
39+
- name: Validate inputs
4240
run: |
43-
if [[ -z "${MONOREPO_READ_TOKEN}" ]]; then
44-
echo "::error::MONOREPO_READ_TOKEN secret is required but not configured."
45-
exit 1
46-
fi
4741
VERSION="${{ inputs.version }}"
48-
if [[ "${VERSION}" != java/v* ]]; then
49-
echo "::error::VERSION must start with 'java/v' (got: '${VERSION}')"
42+
if [[ -z "${VERSION}" ]]; then
43+
echo "::error::version input is required"
5044
exit 1
5145
fi
5246
if [[ "${VERSION}" == *"../"* ]]; then
53-
echo "::error::VERSION must not contain '../'"
47+
echo "::error::version must not contain '../'"
48+
exit 1
49+
fi
50+
TAG="${{ inputs.monorepo_tag }}"
51+
if [[ "${TAG}" != java/v* ]]; then
52+
echo "::error::monorepo_tag must start with 'java/v' (got: '${TAG}')"
5453
exit 1
5554
fi
56-
DEPLOY_VERSION="${VERSION#java/v}"
57-
echo "DEPLOY_VERSION=${DEPLOY_VERSION}" >> "$GITHUB_ENV"
5855
5956
# 1. Checkout this (standalone) repo — has src/site/, pom.xml, templates
6057
- name: Checkout standalone repo

0 commit comments

Comments
 (0)