Repository navigation
ci(docs): build fork PRs without the private ttech-ui checkout - #532
Merged
Merged
Conversation
Fork PRs do not receive repository secrets, so the build-deploy job stopped at the private ttech-ui checkout with no token. Check for the token first. Without it, skip the ttech-ui checkout and the SvelteKit landing page, and still build the docs. Main and tag pushes, which deploy, still fail when the token is missing. The deploy step is unchanged. The workflow token is now read-only.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fork PRs do not get repository secrets, so
build-deployon #531 stopped at theTurtleTech-ehf/ttech-uicheckout withInput required and not supplied: token.A new step checks for
TTECH_UI_TOKENbefore the private checkout.orgbldanddocbldstill run, so the docs build is still checked.The deploy step and its condition are unchanged. The workflow token is now
contents: read; the deploy uses the Cloudflare token and does not need it.actionlint1.7.7 with shellcheck is clean. This PR runs from a branch in this repo, so its own run covers the token-present path. The fork path will show up on #531 after this merges.