File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -186,9 +186,9 @@ jobs:
186186 - name : Save Artifact Id Numbers and Create Directory for SCM RT baselines
187187 run : |
188188 mkdir -p ${dir_bl}
189- ARTIFACT_ID=$(gh api \
190- repos/NCAR/ccpp-scm/actions/artifacts \
191- -- jq '[ .artifacts[] | select(.name == "rt-baselines-${{matrix.build-type}}-main" and (.expired | not))] | sort_by(.created_at) | last | .workflow_run | .id ')
189+ ARTIFACT_ID=$(gh api --paginate \
190+ repos/NCAR/ccpp-scm/actions/artifacts | \
191+ jq -s '[ .[] | .artifacts[] | select(.name == "rt-baselines-${{matrix.build-type}}-main" and (.expired | not))] | sort_by(.created_at) | last | .workflow_run | .id ')
192192 echo "artifact_id=${ARTIFACT_ID}"
193193 echo "artifact_id=${ARTIFACT_ID}" >> "$GITHUB_ENV"
194194
You can’t perform that action at this time.
0 commit comments