Skip to content

Commit

Permalink
Merge pull request #2070 from zerbitx/DOC-226-main
Browse files Browse the repository at this point in the history
Add workflow to trigger doc PR in vcluster-docs
  • Loading branch information
lizardruss authored Aug 14, 2024
2 parents 450e528 + b643cd3 commit d490392
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 d490392

Please sign in to comment.