Skip to content

Commit

Permalink
Merge pull request #1882 from janekbaraniewski/ENG-3943/trigger-docs-…
Browse files Browse the repository at this point in the history
…workflow-on-release

ENG-3943 | Add trigger for docs CI to release workflow
  • Loading branch information
FabianKramm authored Jun 24, 2024
2 parents 17aa960 + eb809d2 commit c0918b6
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,22 @@ jobs:
pattern: "release/*"
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Trigger docs-runme workflow
uses: actions/github-script@v6
with:
script: |
const version = '${{ steps.get_version.outputs.release_version }}';
const response = await github.actions.createWorkflowDispatch({
owner: 'loft-sh',
repo: 'vcluster-docs',
workflow_id: 'e2e-examples.yml',
ref: 'main',
inputs: {
version: version
}
});
console.log(response);
publish-chart:
if: startsWith(github.ref, 'refs/tags/v') == true
needs: [publish]
Expand Down

0 comments on commit c0918b6

Please sign in to comment.