Skip to content

Commit 8c5df1a

Browse files
authored
Update Windows Build ID step to use pwsh syntax
1 parent 469730f commit 8c5df1a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/qatest.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ jobs:
6767
if: matrix.os == 'windows'
6868
shell: pwsh
6969
run: |
70-
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
71-
echo "BUILD_ID=${{ github.event.inputs.build_id }}" >> $GITHUB_ENV
72-
echo "ARTIFACTS_URL=https://api.github.com/repos/secondlife/viewer/actions/runs/${{ github.event.inputs.build_id }}/artifacts" >> $GITHUB_ENV
73-
else
74-
echo "BUILD_ID=${{ github.event.workflow_run.id }}" >> $GITHUB_ENV
75-
echo "ARTIFACTS_URL=https://api.github.com/repos/secondlife/viewer/actions/runs/${{ github.event.workflow_run.id }}/artifacts" >> $GITHUB_ENV
76-
fi
70+
if ("${{ github.event_name }}" -eq "workflow_dispatch") {
71+
echo "BUILD_ID=${{ github.event.inputs.build_id }}" | Out-File -FilePath $env:GITHUB_ENV -Append
72+
echo "ARTIFACTS_URL=https://api.github.com/repos/secondlife/viewer/actions/runs/${{ github.event.inputs.build_id }}/artifacts" | Out-File -FilePath $env:GITHUB_ENV -Append
73+
} else {
74+
echo "BUILD_ID=${{ github.event.workflow_run.id }}" | Out-File -FilePath $env:GITHUB_ENV -Append
75+
echo "ARTIFACTS_URL=https://api.github.com/repos/secondlife/viewer/actions/runs/${{ github.event.workflow_run.id }}/artifacts" | Out-File -FilePath $env:GITHUB_ENV -Append
76+
}
7777
7878
- name: Temporarily Allow PowerShell Scripts (Windows)
7979
if: matrix.os == 'windows'

0 commit comments

Comments
 (0)