-
-
Notifications
You must be signed in to change notification settings - Fork 62
chore: bump actions in ci #2665
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
dfcc4a3
a151043
60f16df
89c9a5b
964c006
977760a
ee9ab8d
613093f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| name: 'Wait for and download artifact' | ||
| description: 'Polls the run''s artifacts API until the named artifact appears, then downloads it.' | ||
| inputs: | ||
| name: | ||
| description: 'Artifact name' | ||
| required: true | ||
| path: | ||
| description: 'Destination path for the artifact contents' | ||
| required: false | ||
|
|
||
| runs: | ||
| using: composite | ||
| steps: | ||
| - name: Wait for ${{ inputs.name }} | ||
| env: | ||
| GH_TOKEN: ${{ github.token }} | ||
| NAME: ${{ inputs.name }} | ||
| shell: pwsh | ||
| run: | | ||
| for ($i = 0; $i -lt 120; $i++) { | ||
| $count = gh api "/repos/$env:GITHUB_REPOSITORY/actions/runs/$env:GITHUB_RUN_ID/artifacts?name=$env:NAME" --jq .total_count | ||
| if ([int]$count -gt 0) { | ||
| exit 0 | ||
|
Comment on lines
+22
to
+23
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: The PowerShell script in Suggested FixWrap the Prompt for AI AgentDid we get this right? 👍 / 👎 to inform future reviews. |
||
| } | ||
| Start-Sleep -Seconds 30 | ||
| } | ||
| Write-Error "Timed out after 60 minutes waiting for artifact: $env:NAME" | ||
| exit 1 | ||
|
Comment on lines
+18
to
+28
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: Several jobs and reusable workflows using the Suggested FixAdd the Prompt for AI AgentDid we get this right? 👍 / 👎 to inform future reviews. |
||
|
|
||
| - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 | ||
| with: | ||
| name: ${{ inputs.name }} | ||
| path: ${{ inputs.path }} | ||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We previously relied on this fork https://github.com/vaind/download-artifact (that is in dire need of getting synced), or, like here, we wrap
action/download-artifactin 10 lines of bash and call it a day.