Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 30 additions & 1 deletion .github/workflows/upload-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,36 @@ jobs:
- name: Install .NET SDK
uses: nike4613/install-dotnet@533307d1c90c37993c8ef1397388bc9783e7b87c
with:
global-json: global.json
global-json: global.json

- name: Wait for packages to be available
if: github.run_id != inputs.run-id
shell: pwsh
env:
GH_TOKEN: ${{ github.token }}
RUN_ID: ${{ inputs.run-id }}
run: |
while ($true)
{
$conclusion = gh api -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" `
"/repos/${{ github.repository }}/actions/runs/$(env:RUN_ID)" `
| ConvertFrom-Json `
| % { $_.conclusion }
if ($null -ne $conclusion)
{
if ($conclusion -ne "success")
{
echo "Build had conclusion '$conclusion'. Failing.";
exit 1;
}
else
{
echo "Build succeeded. Continuing."
exit 0;
}
}
Start-Sleep -Seconds 30;
}

- name: Download compiled packages
uses: actions/download-artifact@v4
Expand Down