-
Notifications
You must be signed in to change notification settings - Fork 114
33 lines (29 loc) · 896 Bytes
/
Copy pathdocs-trigger.yaml
File metadata and controls
33 lines (29 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Copyright 2026 The PyAthena authors
#
# Licensed under the MIT License.
# See LICENSE or https://opensource.org/licenses/MIT.
#
# SPDX-License-Identifier: MIT
name: Trigger Docs on Release
# Rebuilds the documentation after the Release workflow succeeds, so a tag it
# refuses to publish does not trigger a documentation build.
on:
workflow_run:
workflows: [Release]
types: [completed]
permissions:
actions: write
jobs:
trigger-docs:
if: github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
with:
script: |
await github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'docs.yaml',
ref: 'master'
})