cli / cli

GitHub’s official command line tool
https://cli.github.com
MIT License
36.73k stars 5.63k forks source link

Support downloading artifacts in the current session #8641

Open jsoref opened 7 months ago

jsoref commented 7 months ago

Describe the feature or problem you’d like to solve

actions/download-artifact@v3 is able to download the current run's artifacts while the workflow is running. gh can't do this (which is unfortunate). actions/download-artifact@v4 is able to download the current run's artifacts while the workflow is running (without actions: read). gh can't do this (which is unfortunate).

Proposed solution

Users will be able to download artifacts from the current workflow without using uses: actions/download-artifact which has a lousy api involving failing if an artifact isn't present and won't need to add actions: read.

Additional context

gh has a much better interface -- composite actions can handle failures (e.g. artifact not found) without steps failing (unlike actions/download-artifact whose interface is incredibly inflexible and whose team is hostile to their user-base).

andyfeller commented 7 months ago

actions/download-artifact@v3 is able to download the current run's artifacts while the workflow is running. gh can't do this (which is unfortunate).

@jsoref : Could you elaborate on how this doesn't work today? Perhaps share a simple workflow example that fails?

Comparing the logic for downloading artifacts in cli/cli and @actions/toolkit, it appears we are both using the same "Download an artifact" REST endpoint.

jsoref commented 7 months ago

Gimme a bit, I think I have a code path that I can enable for it, although you'd probably prefer a reduced test case.

I'm not sure how much time I have today.

jsoref commented 7 months ago

Welp, here's a run which I think should be sufficient evidence that it doesn't do what you expect: https://github.com/check-spelling-sandbox/upload-artifact-cli-0/actions/runs/7999515774/job/21847448953

flowchart LR;
    A["✅ create-v3"] --> B["❌ retrieve-v3"]

    C["✅ create-v4"] --> D["✅ retrieve-v4"]
✅ create-v3 ``` 2024-02-22T04:35:08.4277342Z Self-hosted runners in the repository are disabled by your administrator 2024-02-22T04:35:08.4954985Z Requested labels: ubuntu-latest 2024-02-22T04:35:08.4955295Z Job defined at: check-spelling-sandbox/upload-artifact-cli-0/.github/workflows/artifacts.yml@refs/heads/main 2024-02-22T04:35:08.4955465Z Waiting for a runner to pick up this job... 2024-02-22T04:35:08.7285291Z Job is waiting for a hosted runner to come online. 2024-02-22T04:35:11.3676038Z Job is about to start running on the hosted runner: GitHub Actions 6 (hosted) 2024-02-22T04:35:13.2360624Z Current runner version: '2.313.0' 2024-02-22T04:35:13.2382914Z ##[group]Operating System 2024-02-22T04:35:13.2383620Z Ubuntu 2024-02-22T04:35:13.2383990Z 22.04.4 2024-02-22T04:35:13.2384316Z LTS 2024-02-22T04:35:13.2384690Z ##[endgroup] 2024-02-22T04:35:13.2385088Z ##[group]Runner Image 2024-02-22T04:35:13.2385519Z Image: ubuntu-22.04 2024-02-22T04:35:13.2385944Z Version: 20240218.1.0 2024-02-22T04:35:13.2386950Z Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20240218.1/images/ubuntu/Ubuntu2204-Readme.md 2024-02-22T04:35:13.2388393Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20240218.1 2024-02-22T04:35:13.2389286Z ##[endgroup] 2024-02-22T04:35:13.2389695Z ##[group]Runner Image Provisioner 2024-02-22T04:35:13.2390202Z 2.0.341.1 2024-02-22T04:35:13.2390557Z ##[endgroup] 2024-02-22T04:35:13.2391498Z ##[group]GITHUB_TOKEN Permissions 2024-02-22T04:35:13.2393014Z Contents: read 2024-02-22T04:35:13.2393892Z Metadata: read 2024-02-22T04:35:13.2394426Z Packages: read 2024-02-22T04:35:13.2395041Z ##[endgroup] 2024-02-22T04:35:13.2397925Z Secret source: Actions 2024-02-22T04:35:13.2398625Z Prepare workflow directory 2024-02-22T04:35:13.3007952Z Prepare all required actions 2024-02-22T04:35:13.3176974Z Getting action download info 2024-02-22T04:35:13.4525448Z Download action repository 'actions/upload-artifact@v3' (SHA:a8a3f3ad30e3422c9c7b888a15615d19a852ae32) 2024-02-22T04:35:13.5695397Z Download action repository 'actions/download-artifact@v3' (SHA:9bc31d5ccc31df68ecc42ccf4149144866c47d8a) 2024-02-22T04:35:13.8682299Z Complete job name: create-v3 2024-02-22T04:35:13.9619035Z ##[group]Run cat > file < file <> file 2024-02-22T04:35:13.9662878Z shell: /usr/bin/bash -e {0} 2024-02-22T04:35:13.9663408Z ##[endgroup] 2024-02-22T04:35:14.0060437Z ##[group]Run actions/upload-artifact@v3 2024-02-22T04:35:14.0061082Z with: 2024-02-22T04:35:14.0061439Z name: test-v3 2024-02-22T04:35:14.0061886Z path: file 2024-02-22T04:35:14.0062333Z if-no-files-found: warn 2024-02-22T04:35:14.0062769Z ##[endgroup] 2024-02-22T04:35:14.1534237Z With the provided path, there will be 1 file uploaded 2024-02-22T04:35:14.1535521Z Starting artifact upload 2024-02-22T04:35:14.1537513Z For more detailed logs during the artifact upload process, enable step-debugging: https://docs.github.com/actions/monitoring-and-troubleshooting-workflows/enabling-debug-logging#enabling-step-debug-logging 2024-02-22T04:35:14.1539561Z Artifact name is valid! 2024-02-22T04:35:14.2452088Z Container for artifact "test-v3" successfully created. Starting upload of file(s) 2024-02-22T04:35:14.3884060Z Total size of all the files uploaded is 41 bytes 2024-02-22T04:35:14.3885145Z File upload process has finished. Finalizing the artifact upload 2024-02-22T04:35:14.4566339Z Artifact has been finalized. All files have been successfully uploaded! 2024-02-22T04:35:14.4567184Z 2024-02-22T04:35:14.4567620Z The raw size of all the files that were specified for upload is 41 bytes 2024-02-22T04:35:14.4569192Z The size of all the files that were uploaded is 41 bytes. This takes into account any gzip compression used to reduce the upload size, time and storage 2024-02-22T04:35:14.4570319Z 2024-02-22T04:35:14.4571623Z Note: The size of downloaded zips can differ significantly from the reported size. For more information see: https://github.com/actions/upload-artifact#zipped-artifact-downloads 2024-02-22T04:35:14.4573031Z 2024-02-22T04:35:14.4573356Z Artifact test-v3 has been successfully uploaded! 2024-02-22T04:35:14.4648918Z ##[group]Run rm -f file 2024-02-22T04:35:14.4649456Z rm -f file 2024-02-22T04:35:14.4678204Z shell: /usr/bin/bash -e {0} 2024-02-22T04:35:14.4678651Z ##[endgroup] 2024-02-22T04:35:14.4792388Z ##[group]Run actions/download-artifact@v3 2024-02-22T04:35:14.4793066Z with: 2024-02-22T04:35:14.4794000Z name: test-v3 2024-02-22T04:35:14.4794388Z ##[endgroup] 2024-02-22T04:35:14.5333596Z Starting download for test-v3 2024-02-22T04:35:14.6476649Z Directory structure has been setup for the artifact 2024-02-22T04:35:14.6478562Z Total number of files that will be downloaded: 1 2024-02-22T04:35:14.7107842Z Artifact test-v3 was downloaded to /home/runner/work/upload-artifact-cli-0/upload-artifact-cli-0 2024-02-22T04:35:14.7115290Z Artifact download has finished successfully 2024-02-22T04:35:14.7249187Z ##[group]Run cat file 2024-02-22T04:35:14.7249688Z cat file 2024-02-22T04:35:14.7250037Z rm -f file 2024-02-22T04:35:14.7250592Z gh -R "$GITHUB_REPOSITORY" run download "$GITHUB_RUN_ID" -n test-v3 && 2024-02-22T04:35:14.7251294Z  cat file || 2024-02-22T04:35:14.7252028Z  echo "I guess gh can't download artifacts from the current run if they're uploaded with actions/upload-artifact@v3" 2024-02-22T04:35:14.7280515Z shell: /usr/bin/bash -e {0} 2024-02-22T04:35:14.7280902Z env: 2024-02-22T04:35:14.7281688Z GH_TOKEN: *** 2024-02-22T04:35:14.7282071Z ##[endgroup] 2024-02-22T04:35:14.7342254Z hello 2024-02-22T04:35:14.7342895Z world 2024-02-22T04:35:14.7343361Z Thu Feb 22 04:35:13 UTC 2024 2024-02-22T04:35:15.0129042Z no valid artifacts found to download 2024-02-22T04:35:15.0144607Z I guess gh can't download artifacts from the current run if they're uploaded with actions/upload-artifact@v3 2024-02-22T04:35:15.0284609Z Cleaning up orphan processes ```
✅ create-v4 ``` 2024-02-22T04:35:08.4527368Z Self-hosted runners in the repository are disabled by your administrator 2024-02-22T04:35:08.5091941Z Requested labels: ubuntu-latest 2024-02-22T04:35:08.5092288Z Job defined at: check-spelling-sandbox/upload-artifact-cli-0/.github/workflows/artifacts.yml@refs/heads/main 2024-02-22T04:35:08.5092489Z Waiting for a runner to pick up this job... 2024-02-22T04:35:08.7072701Z Job is waiting for a hosted runner to come online. 2024-02-22T04:35:12.0820790Z Job is about to start running on the hosted runner: GitHub Actions 2 (hosted) 2024-02-22T04:35:14.3811895Z Current runner version: '2.313.0' 2024-02-22T04:35:14.3836636Z ##[group]Operating System 2024-02-22T04:35:14.3837276Z Ubuntu 2024-02-22T04:35:14.3837728Z 22.04.4 2024-02-22T04:35:14.3838034Z LTS 2024-02-22T04:35:14.3838368Z ##[endgroup] 2024-02-22T04:35:14.3838859Z ##[group]Runner Image 2024-02-22T04:35:14.3839272Z Image: ubuntu-22.04 2024-02-22T04:35:14.3839662Z Version: 20240218.1.0 2024-02-22T04:35:14.3840735Z Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20240218.1/images/ubuntu/Ubuntu2204-Readme.md 2024-02-22T04:35:14.3842152Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20240218.1 2024-02-22T04:35:14.3843015Z ##[endgroup] 2024-02-22T04:35:14.3843504Z ##[group]Runner Image Provisioner 2024-02-22T04:35:14.3843990Z 2.0.341.1 2024-02-22T04:35:14.3844290Z ##[endgroup] 2024-02-22T04:35:14.3845331Z ##[group]GITHUB_TOKEN Permissions 2024-02-22T04:35:14.3846884Z Contents: read 2024-02-22T04:35:14.3847812Z Metadata: read 2024-02-22T04:35:14.3848377Z Packages: read 2024-02-22T04:35:14.3848939Z ##[endgroup] 2024-02-22T04:35:14.3852047Z Secret source: Actions 2024-02-22T04:35:14.3852628Z Prepare workflow directory 2024-02-22T04:35:14.4478140Z Prepare all required actions 2024-02-22T04:35:14.4640678Z Getting action download info 2024-02-22T04:35:14.6305399Z Download action repository 'actions/upload-artifact@v4' (SHA:5d5d22a31266ced268874388b861e4b58bb5c2f3) 2024-02-22T04:35:14.8166632Z Download action repository 'actions/download-artifact@v4' (SHA:eaceaf801fd36c7dee90939fad912460b18a1ffe) 2024-02-22T04:35:15.2038289Z Complete job name: create-v4 2024-02-22T04:35:15.2919195Z ##[group]Run cat > file < file <> file 2024-02-22T04:35:15.2964084Z shell: /usr/bin/bash -e {0} 2024-02-22T04:35:15.2964561Z ##[endgroup] 2024-02-22T04:35:15.3383903Z ##[group]Run actions/upload-artifact@v4 2024-02-22T04:35:15.3384500Z with: 2024-02-22T04:35:15.3384870Z name: test-v4 2024-02-22T04:35:15.3385354Z path: file 2024-02-22T04:35:15.3385708Z if-no-files-found: warn 2024-02-22T04:35:15.3386181Z compression-level: 6 2024-02-22T04:35:15.3386674Z overwrite: false 2024-02-22T04:35:15.3387061Z ##[endgroup] 2024-02-22T04:35:15.6667540Z With the provided path, there will be 1 file uploaded 2024-02-22T04:35:15.6673544Z Artifact name is valid! 2024-02-22T04:35:15.6678650Z Root directory input is valid! 2024-02-22T04:35:15.7633364Z Beginning upload of artifact content to blob storage 2024-02-22T04:35:15.8163878Z Uploaded bytes 165 2024-02-22T04:35:15.8296090Z Finished uploading artifact content to blob storage! 2024-02-22T04:35:15.8301905Z SHA256 hash of uploaded artifact zip is 38f56f5a6623bd3a31f7c3b7d13d78b51a64ffa096680010037212ae3ac8fe65 2024-02-22T04:35:15.8303779Z Finalizing artifact upload 2024-02-22T04:35:15.9039648Z Artifact test-v4.zip successfully finalized. Artifact ID 1265232529 2024-02-22T04:35:15.9041613Z Artifact test-v4 has been successfully uploaded! Final size is 165 bytes. Artifact ID is 1265232529 2024-02-22T04:35:15.9048356Z Artifact download URL: https://github.com/check-spelling-sandbox/upload-artifact-cli-0/actions/runs/7999515774/artifacts/1265232529 2024-02-22T04:35:15.9166167Z ##[group]Run rm -f file 2024-02-22T04:35:15.9166623Z rm -f file 2024-02-22T04:35:15.9195911Z shell: /usr/bin/bash -e {0} 2024-02-22T04:35:15.9196427Z ##[endgroup] 2024-02-22T04:35:15.9349826Z ##[group]Run actions/download-artifact@v4 2024-02-22T04:35:15.9350479Z with: 2024-02-22T04:35:15.9350789Z name: test-v4 2024-02-22T04:35:15.9351138Z merge-multiple: false 2024-02-22T04:35:15.9351700Z repository: check-spelling-sandbox/upload-artifact-cli-0 2024-02-22T04:35:15.9352242Z run-id: 7999515774 2024-02-22T04:35:15.9352555Z ##[endgroup] 2024-02-22T04:35:16.1271158Z Downloading single artifact 2024-02-22T04:35:16.2307124Z Preparing to download the following artifacts: 2024-02-22T04:35:16.2308335Z - test-v4 (ID: 1265232529, Size: 165) 2024-02-22T04:35:16.2945809Z Redirecting to blob download url: https://productionresultssa5.blob.core.windows.net/actions-results/d8dba473-6bde-44c9-a1e5-297e6c106806/workflow-job-run-1e3c8dcd-a9fa-556e-e27d-3afc0cd30064/artifacts/f41c96f29c8e7de7597fe4506e708c1135829945d1a9d2a865a53ee30a862c07.zip 2024-02-22T04:35:16.2947911Z Starting download of artifact to: /home/runner/work/upload-artifact-cli-0/upload-artifact-cli-0 2024-02-22T04:35:16.3210657Z (node:1667) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. 2024-02-22T04:35:16.3213420Z (Use `node --trace-deprecation ...` to show where the warning was created) 2024-02-22T04:35:16.3242349Z Artifact download completed successfully. 2024-02-22T04:35:16.3243298Z Total of 1 artifact(s) downloaded 2024-02-22T04:35:16.3250425Z Download artifact has finished successfully 2024-02-22T04:35:16.3394374Z ##[group]Run cat file 2024-02-22T04:35:16.3394824Z cat file 2024-02-22T04:35:16.3395272Z rm -f file 2024-02-22T04:35:16.3395832Z gh -R "$GITHUB_REPOSITORY" run download "$GITHUB_RUN_ID" -n test-v4 && 2024-02-22T04:35:16.3396420Z  cat file || 2024-02-22T04:35:16.3397220Z  echo "I guess gh can't download artifacts from the current run if they're uploaded with actions/upload-artifact@v3" 2024-02-22T04:35:16.3425703Z shell: /usr/bin/bash -e {0} 2024-02-22T04:35:16.3426188Z env: 2024-02-22T04:35:16.3426803Z GH_TOKEN: *** 2024-02-22T04:35:16.3427166Z ##[endgroup] 2024-02-22T04:35:16.3485641Z hello 2024-02-22T04:35:16.3485993Z world 2024-02-22T04:35:16.3486309Z Thu Feb 22 04:35:15 UTC 2024 2024-02-22T04:35:16.7205672Z hello 2024-02-22T04:35:16.7206077Z world 2024-02-22T04:35:16.7206399Z Thu Feb 22 04:35:15 UTC 2024 2024-02-22T04:35:16.7348297Z Cleaning up orphan processes ```
❌ retrieve-v3 ``` 2024-02-22T04:35:16.9555432Z Self-hosted runners in the repository are disabled by your administrator 2024-02-22T04:35:17.0322867Z Requested labels: ubuntu-latest 2024-02-22T04:35:17.0323204Z Job defined at: check-spelling-sandbox/upload-artifact-cli-0/.github/workflows/artifacts.yml@refs/heads/main 2024-02-22T04:35:17.0323373Z Waiting for a runner to pick up this job... 2024-02-22T04:35:17.2793120Z Job is waiting for a hosted runner to come online. 2024-02-22T04:35:20.8316025Z Job is about to start running on the hosted runner: GitHub Actions 18 (hosted) 2024-02-22T04:35:23.2150915Z Current runner version: '2.313.0' 2024-02-22T04:35:23.2174468Z ##[group]Operating System 2024-02-22T04:35:23.2175251Z Ubuntu 2024-02-22T04:35:23.2175563Z 22.04.4 2024-02-22T04:35:23.2175904Z LTS 2024-02-22T04:35:23.2176320Z ##[endgroup] 2024-02-22T04:35:23.2176663Z ##[group]Runner Image 2024-02-22T04:35:23.2177102Z Image: ubuntu-22.04 2024-02-22T04:35:23.2177588Z Version: 20240218.1.0 2024-02-22T04:35:23.2178629Z Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20240218.1/images/ubuntu/Ubuntu2204-Readme.md 2024-02-22T04:35:23.2180721Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20240218.1 2024-02-22T04:35:23.2181716Z ##[endgroup] 2024-02-22T04:35:23.2182097Z ##[group]Runner Image Provisioner 2024-02-22T04:35:23.2182606Z 2.0.341.1 2024-02-22T04:35:23.2183011Z ##[endgroup] 2024-02-22T04:35:23.2183987Z ##[group]GITHUB_TOKEN Permissions 2024-02-22T04:35:23.2185690Z Contents: read 2024-02-22T04:35:23.2186080Z Metadata: read 2024-02-22T04:35:23.2186761Z Packages: read 2024-02-22T04:35:23.2187231Z ##[endgroup] 2024-02-22T04:35:23.2190699Z Secret source: Actions 2024-02-22T04:35:23.2191416Z Prepare workflow directory 2024-02-22T04:35:23.2821871Z Prepare all required actions 2024-02-22T04:35:23.2980992Z Getting action download info 2024-02-22T04:35:23.4912788Z Download action repository 'actions/download-artifact@v3' (SHA:9bc31d5ccc31df68ecc42ccf4149144866c47d8a) 2024-02-22T04:35:24.1005541Z Complete job name: retrieve-v3 2024-02-22T04:35:24.1981264Z ##[group]Run actions/download-artifact@v3 2024-02-22T04:35:24.1981925Z with: 2024-02-22T04:35:24.1982300Z name: test-v3 2024-02-22T04:35:24.1982834Z ##[endgroup] 2024-02-22T04:35:24.3405753Z Starting download for test-v3 2024-02-22T04:35:24.9001051Z Directory structure has been setup for the artifact 2024-02-22T04:35:24.9004187Z Total number of files that will be downloaded: 1 2024-02-22T04:35:25.1452619Z Artifact test-v3 was downloaded to /home/runner/work/upload-artifact-cli-0/upload-artifact-cli-0 2024-02-22T04:35:25.1461809Z Artifact download has finished successfully 2024-02-22T04:35:25.1744255Z ##[group]Run cat file 2024-02-22T04:35:25.1744819Z cat file 2024-02-22T04:35:25.1745213Z rm -f file 2024-02-22T04:35:25.1745760Z gh -R "$GITHUB_REPOSITORY" run download "$GITHUB_RUN_ID" -n test-v3 2024-02-22T04:35:25.1746402Z find . 2024-02-22T04:35:25.1746753Z cat file 2024-02-22T04:35:25.1789727Z shell: /usr/bin/bash -e {0} 2024-02-22T04:35:25.1790242Z env: 2024-02-22T04:35:25.1790953Z GH_TOKEN: *** 2024-02-22T04:35:25.1791336Z ##[endgroup] 2024-02-22T04:35:25.1928048Z hello 2024-02-22T04:35:25.1928569Z world 2024-02-22T04:35:25.1929025Z Thu Feb 22 04:35:13 UTC 2024 2024-02-22T04:35:25.5287984Z no artifact matches any of the names or patterns provided 2024-02-22T04:35:25.5317621Z ##[error]Process completed with exit code 1. 2024-02-22T04:35:25.5474523Z Cleaning up orphan processes ```
✅ retrieve-v4 ``` 2024-02-22T04:35:23.4736428Z Self-hosted runners in the repository are disabled by your administrator 2024-02-22T04:35:23.5237516Z Requested labels: ubuntu-latest 2024-02-22T04:35:23.5238095Z Job defined at: check-spelling-sandbox/upload-artifact-cli-0/.github/workflows/artifacts.yml@refs/heads/main 2024-02-22T04:35:23.5238268Z Waiting for a runner to pick up this job... 2024-02-22T04:35:23.6835784Z Job is waiting for a hosted runner to come online. 2024-02-22T04:35:26.9523262Z Job is about to start running on the hosted runner: GitHub Actions 10 (hosted) 2024-02-22T04:35:28.7576449Z Current runner version: '2.313.0' 2024-02-22T04:35:28.7600665Z ##[group]Operating System 2024-02-22T04:35:28.7601323Z Ubuntu 2024-02-22T04:35:28.7601667Z 22.04.4 2024-02-22T04:35:28.7602092Z LTS 2024-02-22T04:35:28.7602420Z ##[endgroup] 2024-02-22T04:35:28.7602788Z ##[group]Runner Image 2024-02-22T04:35:28.7603309Z Image: ubuntu-22.04 2024-02-22T04:35:28.7603677Z Version: 20240218.1.0 2024-02-22T04:35:28.7604666Z Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20240218.1/images/ubuntu/Ubuntu2204-Readme.md 2024-02-22T04:35:28.7606202Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20240218.1 2024-02-22T04:35:28.7607047Z ##[endgroup] 2024-02-22T04:35:28.7607490Z ##[group]Runner Image Provisioner 2024-02-22T04:35:28.7608029Z 2.0.341.1 2024-02-22T04:35:28.7608343Z ##[endgroup] 2024-02-22T04:35:28.7609949Z ##[group]GITHUB_TOKEN Permissions 2024-02-22T04:35:28.7611547Z Contents: read 2024-02-22T04:35:28.7611989Z Metadata: read 2024-02-22T04:35:28.7612630Z Packages: read 2024-02-22T04:35:28.7613090Z ##[endgroup] 2024-02-22T04:35:28.7616159Z Secret source: Actions 2024-02-22T04:35:28.7616769Z Prepare workflow directory 2024-02-22T04:35:28.8234998Z Prepare all required actions 2024-02-22T04:35:28.8394373Z Getting action download info 2024-02-22T04:35:28.9695866Z Download action repository 'actions/download-artifact@v4' (SHA:eaceaf801fd36c7dee90939fad912460b18a1ffe) 2024-02-22T04:35:29.3846043Z Complete job name: retrieve-v4 2024-02-22T04:35:29.4727222Z ##[group]Run actions/download-artifact@v4 2024-02-22T04:35:29.4727945Z with: 2024-02-22T04:35:29.4728315Z name: test-v4 2024-02-22T04:35:29.4728958Z merge-multiple: false 2024-02-22T04:35:29.4729646Z repository: check-spelling-sandbox/upload-artifact-cli-0 2024-02-22T04:35:29.4730336Z run-id: 7999515774 2024-02-22T04:35:29.4730751Z ##[endgroup] 2024-02-22T04:35:29.7656843Z Downloading single artifact 2024-02-22T04:35:29.8653422Z Preparing to download the following artifacts: 2024-02-22T04:35:29.8654770Z - test-v4 (ID: 1265232529, Size: 165) 2024-02-22T04:35:29.9258568Z Redirecting to blob download url: https://productionresultssa5.blob.core.windows.net/actions-results/d8dba473-6bde-44c9-a1e5-297e6c106806/workflow-job-run-1e3c8dcd-a9fa-556e-e27d-3afc0cd30064/artifacts/f41c96f29c8e7de7597fe4506e708c1135829945d1a9d2a865a53ee30a862c07.zip 2024-02-22T04:35:29.9264180Z Starting download of artifact to: /home/runner/work/upload-artifact-cli-0/upload-artifact-cli-0 2024-02-22T04:35:29.9478707Z (node:1647) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. 2024-02-22T04:35:29.9482382Z (Use `node --trace-deprecation ...` to show where the warning was created) 2024-02-22T04:35:29.9511173Z Artifact download completed successfully. 2024-02-22T04:35:29.9512530Z Total of 1 artifact(s) downloaded 2024-02-22T04:35:29.9519528Z Download artifact has finished successfully 2024-02-22T04:35:29.9817326Z ##[group]Run cat file 2024-02-22T04:35:29.9817948Z cat file 2024-02-22T04:35:29.9818565Z rm -f file 2024-02-22T04:35:29.9819362Z gh -R "$GITHUB_REPOSITORY" run download "$GITHUB_RUN_ID" -n test-v4 2024-02-22T04:35:29.9820164Z find . 2024-02-22T04:35:29.9820691Z cat file 2024-02-22T04:35:29.9863126Z shell: /usr/bin/bash -e {0} 2024-02-22T04:35:29.9863666Z env: 2024-02-22T04:35:29.9864351Z GH_TOKEN: *** 2024-02-22T04:35:29.9864928Z ##[endgroup] 2024-02-22T04:35:29.9999140Z hello 2024-02-22T04:35:29.9999676Z world 2024-02-22T04:35:30.0000448Z Thu Feb 22 04:35:15 UTC 2024 2024-02-22T04:35:30.3516341Z . 2024-02-22T04:35:30.3516995Z ./file 2024-02-22T04:35:30.3528652Z hello 2024-02-22T04:35:30.3529293Z world 2024-02-22T04:35:30.3529890Z Thu Feb 22 04:35:15 UTC 2024 2024-02-22T04:35:30.3675686Z Cleaning up orphan processes ```