mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
32 lines
759 B
YAML
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 }}"}}'
|