Skip to content

Commit 636126b

Browse files
loft-botPiotr1215
andauthored
fix(ci): correclty reference cli-docs workflow trigger in release (#2712) (#2714)
(cherry picked from commit da99038) Co-authored-by: Piotr Zaniewski <piotr.zaniewski@loft.sh>
1 parent a1499bd commit 636126b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/release.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,12 @@ jobs:
8888
script: |
8989
const version = '${{ steps.get_version.outputs.release_version }}';
9090
const ref = '${{ github.ref }}';
91-
const response = await github.rest.actions.createWorkflowDispatch({
91+
// Using repository_dispatch instead of workflow_dispatch
92+
const response = await github.rest.repos.createDispatchEvent({
9293
owner: 'loft-sh',
9394
repo: 'vcluster-docs',
94-
workflow_id: 'cli-docs.yaml',
95-
ref: 'main',
96-
inputs: {
95+
event_type: 'update-cli-docs',
96+
client_payload: {
9797
version,
9898
ref,
9999
}

0 commit comments

Comments
 (0)