Skip to content

Commit b1b9a88

Browse files
committed
breaking step down into small steps
1 parent db936c1 commit b1b9a88

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/release-package.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)