Skip to content

Commit 1a01df2

Browse files
Merge pull request #1799 from FluxML/logankilpatrick-patch-7
Only add PR comment with docs build if the docs label is added
2 parents 8fa4317 + fc88e17 commit 1a01df2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/pr_comment.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name: pr_comment
22
on:
33
pull_request:
4-
types: [opened]
4+
types: [labeled]
55
jobs:
66
pr_comment:
77
runs-on: ubuntu-latest
88
steps:
99
- name: Create PR comment
10-
if: github.event_name == 'pull_request' && github.repository == github.event.pull_request.head.repo.full_name # if this is a pull request build AND the pull request is NOT made from a fork
10+
if: github.event_name == 'pull_request' && github.repository == github.event.pull_request.head.repo.full_name && ${{ github.event.label.name == 'documentation' }} # if this is a pull request build AND the pull request is NOT made from a fork
1111
uses: thollander/actions-comment-pull-request@71efef56b184328c7ef1f213577c3a90edaa4aff
1212
with:
1313
message: 'Once the build has completed, you can preview any updated documentation at this URL: https://fluxml.ai/Flux.jl/previews/PR${{ github.event.number }}/ in ~20 minutes'

0 commit comments

Comments
 (0)