Commit 1191f8d 1 parent afc87be commit 1191f8d Copy full SHA for 1191f8d
File tree 2 files changed +15
-1
lines changed
2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -194,8 +194,13 @@ jobs:
194
194
# Calling the coverage-comment action from the main CI workflow
195
195
# we might want to pin the SHA once merged
196
196
coverage-comment :
197
- uses : ./.github/workflows/coverage.yml
197
+ # Important: make sure to update the SHA after making any changes to the coverage workflow
198
+ uses : pydata/pydata-sphinx-theme/.github/workflows/coverage.yml@4a1e7898d6c92dade5e489684277ab4ffd0eb053
198
199
needs : [coverage]
200
+ # ensures this runs even if the coverage step does not continue - e.g. the
201
+ # default coverage action will fail at first for external PRs, this is a workaround
202
+ # to ensure the comment is posted
203
+ if : ${{ always() }}
199
204
permissions :
200
205
contents : write
201
206
pull-requests : write
Original file line number Diff line number Diff line change @@ -20,19 +20,26 @@ jobs:
20
20
tests :
21
21
# Important: make sure to update the SHA after making any changes to the CI workflow
22
22
uses : pydata/pydata-sphinx-theme/.github/workflows/CI.yml@4a1e7898d6c92dade5e489684277ab4ffd0eb053
23
+ # only run this workflow for pydata owned repositories (avoid forks)
24
+ if : github.repository_owner == 'pydata'
23
25
# needed for the coverage action
24
26
permissions :
25
27
contents : write
26
28
pull-requests : write
29
+ actions : read
27
30
# calls our docs workflow (build docs, check broken links, lighthouse)
28
31
docs :
29
32
# Important: make sure to update the SHA after making any changes to the docs workflow
30
33
uses : pydata/pydata-sphinx-theme/.github/workflows/docs.yml@4a1e7898d6c92dade5e489684277ab4ffd0eb053
34
+ # only run this workflow for pydata owned repositories (avoid forks)
35
+ if : github.repository_owner == 'pydata'
31
36
32
37
build-package :
33
38
name : " Build & verify PST package"
34
39
# require tests and docs to pass before building the package
35
40
needs : [tests, docs]
41
+ # only run this workflow for pydata owned repositories (avoid forks)
42
+ if : github.repository_owner == 'pydata'
36
43
runs-on : ubuntu-latest
37
44
steps :
38
45
- name : " Checkout repository 🛎"
69
76
release-PST :
70
77
runs-on : ubuntu-latest
71
78
needs : [build-package]
79
+ # only run this workflow for pydata owned repositories (avoid forks)
80
+ if : github.repository_owner == 'pydata'
72
81
permissions :
73
82
id-token : write # needed for PyPI upload
74
83
environment :
You can’t perform that action at this time.
0 commit comments