Skip to content

Commit d490392

Browse files
authored
Merge pull request #2070 from zerbitx/DOC-226-main
Add workflow to trigger doc PR in vcluster-docs
2 parents 450e528 + b643cd3 commit d490392

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/release.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,26 @@ jobs:
9494
});
9595
console.log(response);
9696
97+
- name: Trigger cli-docs workflow
98+
uses: actions/github-script@v7
99+
continue-on-error: true
100+
with:
101+
github-token: ${{ secrets.GH_ACCESS_TOKEN }}
102+
script: |
103+
const version = '${{ steps.get_version.outputs.release_version }}';
104+
const ref = '${{ github.ref }}';
105+
const response = await github.rest.actions.createWorkflowDispatch({
106+
owner: 'loft-sh',
107+
repo: 'vcluster-docs',
108+
workflow_id: 'cluster-docs.yaml',
109+
ref: 'main',
110+
inputs: {
111+
version,
112+
ref,
113+
}
114+
});
115+
console.log(response);
116+
97117
publish-chart:
98118
if: startsWith(github.ref, 'refs/tags/v') == true
99119
needs: [publish]

0 commit comments

Comments
 (0)