fix(ci): trigger docs update via workflow_run (#2066)

This commit is contained in:
soup 2025-05-24 12:34:40 +02:00 committed by GitHub
parent 14b4d85915
commit f5e484679b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,13 +1,19 @@
name: Trigger Docs Update name: Trigger Docs Update
on: on:
release: workflow_run:
types: [published] workflows: ["build"]
types:
- completed
workflow_dispatch: workflow_dispatch:
jobs: jobs:
trigger_docs_update: trigger_docs_update:
runs-on: ubuntu-latest runs-on: ubuntu-latest
# only run if the 'build' workflow was successful and was triggered by a tag push
if: >
github.event.workflow_run.conclusion == 'success' &&
startsWith(github.event.workflow_run.head_branch, 'refs/tags/v')
steps: steps:
- name: Trigger docs workflow - name: Trigger docs workflow
run: | run: |
@ -15,4 +21,4 @@ jobs:
-H "Authorization: token ${{ secrets.DOCS_TOKEN }}" \ -H "Authorization: token ${{ secrets.DOCS_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \ -H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/autobrr/autobrr.com/dispatches \ https://api.github.com/repos/autobrr/autobrr.com/dispatches \
-d '{"event_type": "update-release-notes"}' -d '{"event_type": "update-release-notes"}'