File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -25,11 +25,20 @@ jobs:
2525 | head -n 1 > run_id.txt
2626 echo "run_id=$(cat run_id.txt)" >> $GITHUB_ENV
2727
28- - name : Download artifact
28+ - name : Download artifact metadata
29+ id : get_artifact
2930 run : |
3031 mkdir -p downloaded_artifacts
3132 curl -H "Authorization: token ${{ secrets.PAT }}" \
3233 -L https://api.github.com/repos/OPM/ResInsight/actions/runs/${{ env.run_id }}/artifacts \
34+ -o downloaded_artifacts/artifacts.json
35+ ARTIFACT_URL=$(cat downloaded_artifacts/artifacts.json | jq -r '.artifacts[0].archive_download_url')
36+ echo "artifact_url=$ARTIFACT_URL" >> $GITHUB_ENV
37+
38+ - name : Download artifact file
39+ run : |
40+ curl -H "Authorization: token ${{ secrets.PAT }}" \
41+ -L "${{ env.artifact_url }}" \
3342 -o downloaded_artifacts/artifact.zip
3443
3544 - name : List downloaded files
You can’t perform that action at this time.
0 commit comments