-
Notifications
You must be signed in to change notification settings - Fork 10
32 lines (29 loc) · 1013 Bytes
/
docs.yml
File metadata and controls
32 lines (29 loc) · 1013 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Deploy docs
on:
pull_request:
branches: [ main ]
types: [ closed ]
paths:
- "docs/**"
jobs:
trigger_docs_website_deploy:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true
steps:
- uses: actions/checkout@v6
with:
# Check out the merge commit on the base branch
ref: ${{ github.event.pull_request.merge_commit_sha }}
- name: Send trigger for remote website deploy
env:
DOCS_REPO_TOKEN: ${{ secrets.DOCS_REPO_TOKEN }}
run: |
set -euo pipefail
curl -sS -L --fail-with-body \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${DOCS_REPO_TOKEN}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/ozontech/seq-db-docs/dispatches \
-d '{"event_type":"dispatch-event"}'