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.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add workflow for building and deploying Storybook #3933
Add workflow for building and deploying Storybook #3933
Changes from all commits
94e8283
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something that confuses me here is that both the
build
anddeploy
jobs both have a step nameddeployment
. Although I see it is this way in the documentation, is this necessary or correct?My understanding of the
environment
is that it will insert environment variables into all the steps in this job, so therefore this is executed before the job starts. Andsteps.deployment.outputs.page_url
is referencing a value output by another step, but this job hasn't run yet, so is it referencing thedeployment
step from thebuild
job? That seems to be what the copilot suggestion was getting at.I'm wondering which bits can be deleted (if any) and it still works 🤷🏼
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this ensures that the URL shown for the github-pages deployment is the actual URL of the Pages site. It seems like this
url
is only evaluated once the workflow has finished, so thepage_url
is referenced from theactions/deploy-pages
step. This would match with the documentation about thisurl
parameter and also matches what is shown in the Actions logs: https://github.com/github/vscode-codeql/actions/runs/13410592273/job/37459738438#step:3:2.