-
Notifications
You must be signed in to change notification settings - Fork 114
41 lines (31 loc) · 901 Bytes
/
website_preview_link.yml
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
34
35
36
37
38
39
40
41
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) Contributors to the OpenEXR Project.
#
# GitHub Actions workflow file
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions
#
# This action adds a link to the PR description pointing to the
# readthedocs build of the website, for PRs that modify the website.
#
# Note that the link is also available in the PR checks, but it gets
# buried among the output of the checks and isn't obvious.
#
name: Website preview link
on:
pull_request_target:
types:
- opened
paths:
- 'website/**'
permissions:
contents: read
jobs:
pull-request-links:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: readthedocs/actions/preview@v1
with:
project-slug: "imath"
message-template: "Website preview: {docs-pr-index-url}"