forked from platformatic/platformatic
-
Notifications
You must be signed in to change notification settings - Fork 0
23 lines (22 loc) · 1002 Bytes
/
update-docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: "documentation"
on:
release:
types: [published]
push:
branches:
- main
paths:
- 'docs/**'
- '**.md'
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Update docs
if: ${{ github.event_name == 'release' }}
run: |
curl -vvv -XPOST -u "${{ secrets.GH_API_USERNAME }}:${{ secrets.GH_API_TOKEN }}" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" https://api.github.com/repos/platformatic/oss/dispatches --data '{"event_type": "update_docs"}' --fail
- name: Force update docs
if: ${{ github.event_name == 'push' }}
run: |
curl -vvv -XPOST -u "${{ secrets.GH_API_USERNAME }}:${{ secrets.GH_API_TOKEN }}" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" https://api.github.com/repos/platformatic/oss/dispatches --data '{"event_type": "update_docs", "client_payload": { "force": true }}' --fail