You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- increment miniconda setup to v3 from v2
- set macos build runner to use intel macs rather than m1, since we don't have binaries for m1
- switch download artifact step to use the official github one, which now allows grabbing artifacts from other runs
ResolvesReactionMechanismGenerator#2611
See ReactionMechanismGenerator#2667 for more history
asdf
# upload the results for scheduled CI (on main) and pushes to main
197
197
if: ${{ env.REFERENCE_JOB == 'true' }}
198
-
uses: actions/upload-artifact@v3
198
+
uses: actions/upload-artifact@v4
199
199
with:
200
200
name: stable_regression_results
201
201
path: |
@@ -204,7 +204,7 @@ jobs:
204
204
# Upload Regression Results as Dynamic if Push to non-main Branch
205
205
- name: Upload Results as Dynamic
206
206
if: ${{ env.REFERENCE_JOB == 'false' }}
207
-
uses: actions/upload-artifact@v3
207
+
uses: actions/upload-artifact@v4
208
208
with:
209
209
name: dynamic_regression_results
210
210
path: |
@@ -215,23 +215,24 @@ jobs:
215
215
run: mkdir stable_regression_results
216
216
217
217
# Retrieve Stable Results for reference
218
-
# Will need to use this -> https://github.com/dawidd6/action-download-artifact
218
+
- name : Find ID of Reference Results
219
+
env:
220
+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
221
+
run: |
222
+
run_id=$(gh run list -R ReactionMechanismGenerator/RMG-Py --workflow="Continuous Integration" --branch main --limit 1 --json databaseId --jq '.[0].databaseId')
223
+
echo "CI_RUN_ID=$run_id" >> $GITHUB_ENV
224
+
219
225
- name: Retrieve Stable Regression Results
220
226
if: ${{ env.REFERENCE_JOB == 'false' }}
221
-
uses: dsnopek/action-download-artifact@91dda23aa09c68860977dd0ed11d93c0ed3795e7 # see https://github.com/ReactionMechanismGenerator/RMG-Py/pull/2459#issuecomment-1582850815
227
+
uses: actions/download-artifact@v4
222
228
with:
223
229
# this will search for the last successful execution of CI on main and download
224
230
# the stable regression results
225
-
workflow: CI.yml
226
-
workflow_conclusion: success
227
-
repo: ReactionMechanismGenerator/RMG-Py
228
-
branch: main
231
+
run-id: ${{ env.CI_RUN_ID }}
232
+
repository: ReactionMechanismGenerator/RMG-Py
233
+
github-token: ${{ secrets.GH_PAT }}
229
234
name: stable_regression_results
230
235
path: stable_regression_results
231
-
search_artifacts: true # retrieves the last run result, either scheduled daily or on push to main
232
-
ensure_latest: true # ensures that the latest run is retrieved
233
-
# should result in a set of folders inside stable_regression_results
234
-
# each of which has the stable result for that example/test
0 commit comments