We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a209ce commit dccdf4aCopy full SHA for dccdf4a
.github/workflows/update-from-latest.yml
@@ -35,7 +35,8 @@ jobs:
35
curl -H "Authorization: token ${{ secrets.PAT }}" \
36
-L https://api.github.com/repos/OPM/ResInsight/actions/runs/${{ env.run_id }}/artifacts \
37
-o downloaded_artifacts/artifacts.json
38
- ARTIFACT_URL=$(cat downloaded_artifacts/artifacts.json | jq -r '.artifacts[0].archive_download_url')
+ # Find artifact with name python-distribution
39
+ ARTIFACT_URL=$(jq -r '.artifacts[] | select(.name=="python-distribution") | .archive_download_url' downloaded_artifacts/artifacts.json)
40
echo "artifact_url=$ARTIFACT_URL" >> $GITHUB_ENV
41
42
- name: Download artifact file
0 commit comments