mirror of
https://github.com/Iconica-Development/flutter_start.git
synced 2025-05-18 18:13:45 +02:00
feat: add documentation workflow
This commit is contained in:
parent
ebe86cf934
commit
cdf53e9afa
1 changed files with 23 additions and 0 deletions
23
.github/workflows/documentation.yml
vendored
Normal file
23
.github/workflows/documentation.yml
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
# .github/workflows/trigger-docs-update.yml
|
||||
name: Trigger Documentation Update
|
||||
|
||||
on:
|
||||
release:
|
||||
workflow_dispatch:
|
||||
|
||||
|
||||
jobs:
|
||||
trigger-doc-update:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Trigger documentation workflow
|
||||
env:
|
||||
DOC_PAT: ${{ secrets.DOC_PAT }}
|
||||
run: |
|
||||
REPO_URL="https://github.com/${{ github.repository }}"
|
||||
curl \
|
||||
-X POST \
|
||||
-H "Accept: application/vnd.github.v3+json" \
|
||||
-H "Authorization: token $DOC_PAT" \
|
||||
"https://api.github.com/repos/Iconica-Development/iconica_component_documentation/actions/workflows/documentation.yml/dispatches" \
|
||||
-d "{\"ref\":\"master\",\"inputs\":{\"repository_url\":\"$REPO_URL\"}}"
|
Loading…
Reference in a new issue