@@ -131,8 +131,8 @@ jobs:
131
131
132
132
# Upload Regression Results as Stable if Scheduled or Push to Main
133
133
- name : Upload Results as Reference
134
- # upload the results for scheduled CI and pushes to main
135
- if : ${{ github.event_name == 'schedule' || github. ref == 'refs/heads/main' }}
134
+ # upload the results for scheduled CI (on main) and pushes to main
135
+ if : github.ref == 'refs/heads/main'
136
136
uses : actions/upload-artifact@v3
137
137
with :
138
138
name : stable_regression_results
@@ -141,7 +141,7 @@ jobs:
141
141
142
142
# Upload Regression Results as Dynamic if Push to non-main Branch
143
143
- name : Upload Results as Dynamic
144
- if : ${{ github.event_name != 'schedule' || github. ref != 'refs/heads/main' }}
144
+ if : github.ref != 'refs/heads/main'
145
145
uses : actions/upload-artifact@v3
146
146
with :
147
147
name : dynamic_regression_results
@@ -154,7 +154,7 @@ jobs:
154
154
# Retrieve Stable Results for reference
155
155
# Will need to use this -> https://github.com/dawidd6/action-download-artifact
156
156
- name : Retrieve Stable Regression Results
157
- if : ${{ github.event_name != 'schedule' }}
157
+ if : github.ref != 'refs/heads/main'
158
158
uses : dawidd6/action-download-artifact@v2
159
159
with :
160
160
# this will search for the last scheduled execution of CI on main and download
@@ -163,13 +163,14 @@ jobs:
163
163
workflow_conclusion : success
164
164
branch : main
165
165
name : stable_regression_results
166
+ path : stable_regression_results
166
167
search_artifacts : true # retrieves the last run result, either scheduled daily or on push to main
167
168
# should result in a set of folders inside stable_regression_results
168
169
# each of which has the stable result for that example/test
169
170
170
171
# Regression Testing - Actual Comparisons
171
172
- name : Regression Tests - Compare to Baseline
172
- if : ${{ github.event_name != 'schedule' }}
173
+ if : github.ref != 'refs/heads/main'
173
174
env :
174
175
REFERENCE : stable_regression_results
175
176
run : |
0 commit comments