File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,17 +43,26 @@ jobs:
4343 with :
4444 token : ${{ secrets.GITHUB_TOKEN }}
4545
46- - name : Download packages
46+ - name : Get artifact list
4747 if : steps.check-issue.outputs.exists == 'true'
48- working-directory : ${{ env.OUTPUT_PATH }}
4948 run : |
5049 echo ${{ steps.get-action-id.outputs.id }}
5150 mkdir ${{ env.OUTPUT_PATH }}
5251 cd ${{ env.OUTPUT_PATH }}
5352 curl https://api.github.com/repos/aaronpowell/FSharp.CosmosDb/actions/runs/${{ steps.get-action-id.outputs.id }}/artifacts --output artifacts.json
53+
54+ - name : Get download artifact
55+ if : steps.check-issue.outputs.exists == 'true'
56+ working-directory : ${{ env.OUTPUT_PATH }}
57+ run : |
5458 downloadUrl=$(cat artifacts.json | jq -c '.artifacts[] | select(.name == "packages") | .archive_download_url')
5559 echo $downloadUrl
5660 curl $downloadUrl --output packages.zip
61+
62+ - name : Unpack artifact
63+ if : steps.check-issue.outputs.exists == 'true'
64+ working-directory : ${{ env.OUTPUT_PATH }}
65+ run : |
5766 unzip packages.zip
5867 ls
5968
You can’t perform that action at this time.
0 commit comments