File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 16
16
17
17
# Allows you to run this workflow manually from the Actions tab
18
18
workflow_dispatch :
19
+
20
+ # Make env var reflect presence of token
21
+ env :
22
+ PAT_EXISTS : ${{ secrets.PAT_TOKEN }}
19
23
20
24
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
21
25
jobs :
63
67
id : download
64
68
- name : Publish to external repo
65
69
# Only upload if we're running from the staticwebdev repo
66
- if : ${{ env.PAT_TOKEN != 0 }}
70
+ if : " ${{ env.PAT_EXISTS != '' }}"
67
71
uses : peaceiris/actions-gh-pages@v3.7.3
68
72
with :
69
73
external_repository : mspnp/intern-js-pipeline
92
96
- name : Notify docusaurus repo
93
97
env :
94
98
GITHUB_TOKEN : ${{ secrets.PAT_TOKEN }}
99
+ if : " ${{ env.PAT_EXISTS != '' }}"
95
100
run : |
96
101
gh api repos/mspnp/intern-js-pipeline/dispatches \
97
102
--raw-field event_type=rebuild-site
You can’t perform that action at this time.
0 commit comments