: This is the standard way to pass data between jobs.
- name: Download File via cURL run: curl -L "https://example.com" --output file.tar.gz shell: cmd Use code with caution.
- name: Download File via WebClient run: | $client = New-Object System.Net.WebClient $client.DownloadFile("https://example.com", "file.exe") shell: powershell Use code with caution. Using cURL on Windows Runners github actions windows download file
: A faster alternative for larger files or specific network configurations.
- name: Download Build Artifact uses: actions/download-artifact@v4 with: name: my-artifact path: target/directory Use code with caution. Practical Considerations for Windows Runners Downloading a file with PowerShell - Stack Overflow : This is the standard way to pass data between jobs
If the "download" refers to retrieving a file generated by a previous job in the same workflow, use the official actions/download-artifact action.
- name: Download File via PowerShell run: Invoke-WebRequest -Uri "https://example.com" -OutFile "C:\temp\file.zip" shell: powershell Use code with caution. Using cURL on Windows Runners : A faster
: Use the --output or -o flag to save the file locally.