File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
.github/actions/setup-dependency Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -32,12 +32,14 @@ runs:
3232 echo "type=tar" >> $GITHUB_OUTPUT
3333 else
3434 echo "type=unknown" >> $GITHUB_OUTPUT
35+ shell : bash
3536
3637 - name : Handle git repository
3738 if : steps.source_type.outputs.type == 'git'
3839 run : |
3940 echo "Cloning git repository to ${{ inputs.dest }}"
4041 git clone ${{ inputs.source }} ${{ inputs.dest }}
42+ shell : bash
4143
4244 - name : Handle zip/tar on Linux/macOS
4345 if : steps.source_type.outputs.type != 'git' && runner.os != 'Windows'
@@ -52,18 +54,20 @@ runs:
5254 else
5355 echo "ERROR: Unknown archive type"
5456 exit 1
57+ shell : bash
5558
5659 - name : Handle zip on Windows
5760 if : steps.source_type.outputs.type == 'zip' && runner.os == 'Windows'
58- shell : powershell
5961 run : |
6062 Write-Output "Downloading ${{ inputs.source }}"
6163 Invoke-WebRequest -Uri ${{ inputs.source }} -OutFile tmp_archive
6264 New-Item -ItemType Directory -Path ${{ inputs.dest }} -Force
6365 Expand-Archive tmp_archive -DestinationPath ${{ inputs.dest }} -Force
66+ shell : powershell
6467
6568 - name : Unsupported types on Windows
6669 if : steps.source_type.outputs.type != 'git' && steps.source_type.outputs.type != 'zip' && runner.os == 'Windows'
6770 run : |
68- echo "ERROR: Only zip archives are supported on Windows for now"
71+ Write-Error "ERROR: Only zip archives are supported on Windows for now"
6972 exit 1
73+ shell : powershell
You can’t perform that action at this time.
0 commit comments