File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ jobs:
128
128
129
129
# TODO append preview links to PR
130
130
- name : Preview the dashboards
131
- if : ${{ !inputs.skip_preview }}
131
+ if : ${{ github.event_name == 'pull_request' && !inputs.skip_preview }}
132
132
uses : ./actions/preview_dashboards
133
133
with :
134
134
directory : ./built
@@ -139,15 +139,14 @@ jobs:
139
139
140
140
# TODO append diff to PR
141
141
- name : Generate dashboards diffs
142
- if : ${{ !inputs.skip_diff }}
142
+ if : ${{ github.event_name == 'pull_request' && !inputs.skip_diff }}
143
143
uses : ./actions/diff_dashboards
144
144
with :
145
145
directory : ./built
146
146
project : ${{ inputs.project }}
147
147
148
- # TODO skip deploy if pull request
149
148
- name : Deploy the dashboards
150
- if : ${{ !inputs.skip_deploy }}
149
+ if : ${{ github.event_name != 'pull_request' && !inputs.skip_deploy }}
151
150
uses : ./actions/apply_resources
152
151
with :
153
152
directory : ./built
You can’t perform that action at this time.
0 commit comments