Skip to content

Commit 97ccd7c

Browse files
committed
asdf
1 parent 24efb1d commit 97ccd7c

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)