Skip to content

Commit dccdf4a

Browse files
committed
asdf
1 parent 5a209ce commit dccdf4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/update-from-latest.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ jobs:
3535
curl -H "Authorization: token ${{ secrets.PAT }}" \
3636
-L https://api.github.com/repos/OPM/ResInsight/actions/runs/${{ env.run_id }}/artifacts \
3737
-o downloaded_artifacts/artifacts.json
38-
ARTIFACT_URL=$(cat downloaded_artifacts/artifacts.json | jq -r '.artifacts[0].archive_download_url')
38+
# Find artifact with name python-distribution
39+
ARTIFACT_URL=$(jq -r '.artifacts[] | select(.name=="python-distribution") | .archive_download_url' downloaded_artifacts/artifacts.json)
3940
echo "artifact_url=$ARTIFACT_URL" >> $GITHUB_ENV
4041
4142
- name: Download artifact file

0 commit comments

Comments
 (0)