8000 Icon: Fix icon width on safari (#344) · nginxinc/nginx-hugo-theme@a916df3 · GitHub
[go: up one dir, main page]

Skip to content

Build preview on documentation repo upon release publish #35

Build preview on documentation repo upon release publish

Build preview on documentation repo upon release publish #35

Workflow file for this run

name: Build preview on documentation repo upon release publish
on:
release:
types:
- published
env:
OWNER: nginx
REPO: documentation
jobs:
trigger-documentation-build:
runs-on: ubuntu-latest
steps:
- name: Trigger 'Build and deploy' workflow in 'documentation' repo
run: |
DESCRIPTION=$(echo "${{ github.event.release.body }}" | jq -aRs .)
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.DOCUMENTATION_SLACK_FLOW_PAT }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"https://api.github.com/repos/${{ env.OWNER }}/${{ env.REPO }}/dispatches" \
-d "{\"event_type\": \"trigger-preview-build\", \"client_payload\": {\"environment\": \"preview\", \"hugo_theme_override\": \"\", \"description\": $DESCRIPTION, \"author\": \"${{ github.event.release.author.login }}\", \"tag_name\": \"${{ github.event.release.tag_name }}\", \"release_name\": \"${{ github.event.release.name }}\"}}"
0