From b643cd3e996cf43df45a8d509f1e2653681ce435 Mon Sep 17 00:00:00 2001 From: RyanSwanson Date: Thu, 8 Aug 2024 11:51:10 -0600 Subject: [PATCH] Add workflow to trigger doc PR in vcluster-docs --- .github/workflows/release.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7a70802050..777cb86fb1 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]