-
-
Notifications
You must be signed in to change notification settings - Fork 56
34 lines (30 loc) · 919 Bytes
/
docs-deploy-on-release.yml
File metadata and controls
34 lines (30 loc) · 919 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
33
34
name: Docs Deploy On Release
on:
release:
types: [published, edited, deleted]
permissions:
actions: write
contents: read
concurrency:
group: docs-release-relay-${{ github.event.release.tag_name }}
cancel-in-progress: true
jobs:
relay:
runs-on: ubuntu-latest
steps:
- name: Dispatch Docs Deploy on main
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}
TAG: ${{ github.event.release.tag_name }}
ACTION: ${{ github.event.action }}
run: |
set -euo pipefail
gh api \
-X POST \
-H "Accept: application/vnd.github+json" \
"repos/${REPO}/actions/workflows/docs-deploy.yml/dispatches" \
-f ref=main \
-f "inputs[full_reconcile]=false" \
-f "inputs[release_tag]=${TAG}" \
-f "inputs[release_action]=${ACTION}"