Skip to content

Commit

Permalink
ci/website: Use commit sha when dispatching website build (envoyproxy…
Browse files Browse the repository at this point in the history
…#29918)

Signed-off-by: Ryan Northey <[email protected]>
  • Loading branch information
phlax authored Oct 3, 2023
1 parent d52b4f4 commit 0a334ce
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/_stage_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,13 @@ jobs:
trusted: true

publish_docs:
# For normal commits to Envoy main this will trigger an update in the website repo,
# which will update its envoy dep shas, and rebuild the website for the latest docs
#
# For commits that create a release, it instead triggers an update in the archive repo,
# which builds a static version of the docs for the release and commits it to the archive.
# In turn the archive repo triggers an update in the website so the new release docs are
# included in the published site
if: ${{ inputs.trusted }}
runs-on: ubuntu-22.04
needs:
Expand All @@ -107,3 +114,5 @@ jobs:
ref: main
repository: ${{ inputs.version_dev != '' && 'envoyproxy/envoy-website' || 'envoyproxy/archive' }}
workflow: envoy-sync.yaml
inputs: |
commit_sha: ${{ inputs.version_dev != '' && github.sha || '' }}

0 comments on commit 0a334ce

Please sign in to comment.