-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
ci: release workflow to open a PR on docs repo with latest changes #9583
Conversation
.github/workflows/dispatch-docs.yml
Outdated
name: Sending ${{ env.EVENT_NAME }} event to ${{ env.UPSTREAM_OWNER }}/${{ env.UPSTREAM_REPO }} | ||
uses: actions/github-script@v6 | ||
with: | ||
github-token: ${{ secrets.GHPAT_DOCS_DISPATCH }} |
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.
secret is in the org settings, no need to add it in this repo.
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.
LGTM, thanks @crazy-max 👍
Convert to draft for now, see docker/docs#14976 (comment) |
As we can directly open a PR on docs repo from here there is no need to rely on dispatch events which avoid creating a workflow on docs repo: docker/docs#14976 (comment) PTAL @glours |
Signed-off-by: CrazyMax <[email protected]>
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.
LGTM 👍
closes #9296
follow-up docker/docs#14976
What I did
creates workflow with a release published types event. This workflow will be triggered when a release is published. The step in this workflow will send acompose-docs
event with a payload that contains the git context and release name from GitHub event as well as the dockerfile target that will be used upstream. here we use the officialactions/github-script
action instead of a community one to send the event.creates workflow with a release published types event. This workflow will be triggered when a release is published. The step in this workflow will clone the remote docs repository, build the
docs-reference
stage in this repo and open a PR on docs repo with latest changes.cc @glours
Related issue
(not mandatory) A picture of a cute animal, if possible in relation with what you did
Signed-off-by: CrazyMax [email protected]