Fix update-docs-website workflow triggers #1755
Merged
+57
−3
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.
Changes the update-docs-website workflow to trigger explicitly as a reusable workflow instead of relying on the release event.
This addresses the issue of automatic PRs not being opened for Operator/CRD Helm chart releases since those are created via another workflow's GITHUB_TOKEN.
Fixes stacklok/docs-website#74
The previous attempt, #1477 failed and was reverted because the helm releaser needed
secrets: inheritpassed to it from its own parent (run-on-main-charts.yml), and because the chart-releaser-action output was not as expected. This revision fixes both.Note for the helm releaser; since chart-releaser-action might process multiple Helm charts in one workflow, I had to build a JSON list of the releases to then matrix the docs update workflow call. It's ugly, but it works.
Signed-off-by: Dan Barr 6922515+danbarr@users.noreply.github.com