Skip to content

Commit

Permalink
Add workflow to trigger doc PR in vcluster-docs
Browse files Browse the repository at this point in the history
(cherry picked from commit 454a97d)
  • Loading branch information
zerbitx authored and deniseschannon committed Aug 14, 2024
1 parent fb64a14 commit 531ed2d
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 531ed2d

Please sign in to comment.