diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 6d3b5c1d5..c3932c65a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -94,6 +94,26 @@ jobs: }); console.log(response); + - name: Trigger cli-docs workflow + uses: actions/github-script@v7 + continue-on-error: true + with: + github-token: ${{ secrets.GH_ACCESS_TOKEN }} + script: | + const version = '${{ steps.get_version.outputs.release_version }}'; + const ref = '${{ github.ref }}'; + const response = await github.rest.actions.createWorkflowDispatch({ + owner: 'loft-sh', + repo: 'vcluster-docs', + workflow_id: 'cluster-docs.yaml', + ref: 'main', + inputs: { + version, + ref, + } + }); + console.log(response); + publish-chart: if: startsWith(github.ref, 'refs/tags/v') == true needs: [publish]