mirror of
https://github.com/SonarSource/sonarqube-scan-action.git
synced 2026-10-06 19:41:39 +00:00
Use powershell
This commit is contained in:
1 parent
f9b74a459a
commit
f8132da3be
1 file changed
+4
-4
@@ -26,7 +26,7 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install native GnuPG (Gpg4win) and put it first on PATH
|
- name: Install native GnuPG (Gpg4win) and put it first on PATH
|
||||||
shell: pwsh
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
choco install gnupg -y --no-progress
|
choco install gnupg -y --no-progress
|
||||||
# The reporter's gpg lives at C:\Program Files (x86)\GnuPG\bin\gpg.exe.
|
# The reporter's gpg lives at C:\Program Files (x86)\GnuPG\bin\gpg.exe.
|
||||||
@@ -42,7 +42,7 @@ jobs:
|
|||||||
Add-Content -Path $env:GITHUB_PATH -Value $gpgDir
|
Add-Content -Path $env:GITHUB_PATH -Value $gpgDir
|
||||||
|
|
||||||
- name: Confirm `gpg` resolves to native GnuPG
|
- name: Confirm `gpg` resolves to native GnuPG
|
||||||
shell: pwsh
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
$g = Get-Command gpg
|
$g = Get-Command gpg
|
||||||
Write-Host "gpg resolves to: $($g.Source)"
|
Write-Host "gpg resolves to: $($g.Source)"
|
||||||
@@ -53,7 +53,7 @@ jobs:
|
|||||||
}
|
}
|
||||||
|
|
||||||
- name: Root-cause demo — native gpg rejects an MSYS-style --homedir
|
- name: Root-cause demo — native gpg rejects an MSYS-style --homedir
|
||||||
shell: pwsh
|
shell: powershell
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
# convertToUnixPath() would turn e.g. C:\...\gpg-home into /c/.../gpg-home.
|
# convertToUnixPath() would turn e.g. C:\...\gpg-home into /c/.../gpg-home.
|
||||||
@@ -73,7 +73,7 @@ jobs:
|
|||||||
skipSignatureVerification: false
|
skipSignatureVerification: false
|
||||||
|
|
||||||
- name: Assert the bug reproduced
|
- name: Assert the bug reproduced
|
||||||
shell: pwsh
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
Write-Host "Action step outcome: ${{ steps.action.outcome }}"
|
Write-Host "Action step outcome: ${{ steps.action.outcome }}"
|
||||||
if ("${{ steps.action.outcome }}" -eq "failure") {
|
if ("${{ steps.action.outcome }}" -eq "failure") {
|
||||||
|
|||||||
Reference in new issue
Block a user