1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-25 20:22:36 +01:00

[docs] automatically trigger pages build on gdl-org/docs

This commit is contained in:
Mike Fährmann 2024-03-03 22:28:56 +01:00
parent 6482bbc525
commit a97e39d94a
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

23
.github/workflows/pages_dispatch.yml vendored Normal file
View File

@ -0,0 +1,23 @@
name: Dispatch GitHub Pages Build
on:
workflow_dispatch:
push:
branches:
- "master"
paths:
- "docs/**"
jobs:
dispatch:
runs-on: ubuntu-latest
steps:
- name: dispatch
run: >
curl -L
-X POST
-H "Accept: application/vnd.github+json"
-H "Authorization: Bearer ${{ secrets.DISPATCH_TOKEN }}"
-H "X-GitHub-Api-Version: 2022-11-28"
https://api.github.com/repos/gdl-org/docs/actions/workflows/pages.yml/dispatches
-d '{"ref":"master"}'