-
Notifications
You must be signed in to change notification settings - Fork 69
Comment specific preview links for changed files #1341
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
base: main
Are you sure you want to change the base?
Conversation
…content into bmorelli25-patch-2
"", | ||
...links, | ||
"", | ||
"🔔 *The preview site may take up to **5 minutes** to finish building. These links will become live once it completes.*" |
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.
5 minutes? 😢 https://github.com/elastic/docs-content/actions/workflows/docs-build.yml begs to differ!
Its a safe margin I get it 😄
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.
Just spotted the attempts to update on deployment created ❤️ that!
I think adding these permissions to the workflow would be sufficient.
permissions:
deployments: read
https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#permissions
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.
oh snap! Thanks, I'll give this a try
Summary
This PR adds a comment with links from each changed file to the built location in the deployment preview. This comment will be updated every time a new commit is pushed.