serverless/.github/workflows/trigger-sync-docs.yml
Walid Elnozahy a7b3787e2a
Sync docs trigger (#12666)
* chore: update sync docs workflow

* chore: update sync docs workflow
2024-07-04 18:53:35 +03:00

32 lines
759 B
YAML

name: Trigger Sync Docs
on:
push:
branches:
- main
paths:
- 'docs/**'
workflow_dispatch:
inputs:
stage:
description: 'Deployment stage'
required: true
default: 'dev'
type: choice
options:
- dev
- prod
jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: Trigger Sync Docs Workflow
run: |
curl -X POST \
-H "Accept: application/vnd.github.everest-preview+json" \
-H "Authorization: token ${{ secrets.WORKFLOW_TOKEN }}" \
https://api.github.com/repos/serverlessinc/growth/dispatches \
-d '{"event_type":"sync-docs", "client_payload": {"stage": "${{ github.event.inputs.stage }}"}}'