From 531ed2d4a99b8fd6bcaeaf1d1f61ee78355d4892 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 (cherry picked from commit 454a97d18c0cc3971b55544cb27f97a21cc6e76c) --- .github/workflows/release.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 6d3b5c1d59..c3932c65ad 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]