8000 Merge pull request #376 from nginxinc/fix-product-path-matching · nginxinc/nginx-hugo-theme@f5abced · GitHub
[go: up one dir, main page]

Skip to content

v1.0.1

v1.0.1 #42

Workflow file for this run

name: Build preview on documentation repo upon release publish
on:
release:
types:
- released
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