Skip to content

WIP branch to test workflows #5

WIP branch to test workflows

WIP branch to test workflows #5

Workflow file for this run

name: Automatic CLI Docs Update
on:
pull_request:
branches: ["doc-226-target-test"]
types: [opened, reopened, edited, ready_for_review, converted_to_draft]
jobs:
trigger-cli-docs-update:
name: Trigger CLI Docs Update
runs-on: ubuntu-latest
steps:
- name: Trigger CLI Docs Update workflow in vcluster-docs
run: |
gh api \
--method POST \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/repos/loft-sh/vcluster-docs/dispatches \
-f "event_type=update-cli-docs" \
-F "client_payload[ref]={{ github.event.pull_request.head.ref }}" \
-F "client_payload[title]={{ github.event.pull_request.title }}"
-F "client_payload[version]=some-version"