summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorAtlasLinden <114031241+AtlasLinden@users.noreply.github.com>2025-05-06 12:41:08 -0700
committerGitHub <noreply@github.com>2025-05-06 12:41:08 -0700
commit8c5df1ad9d812a50e0ed5281bcafbfb867d670eb (patch)
tree086f1abfb06634a24f38c91ed07cd16d64a59132 /.github
parent469730f18798f0c4baba17759bdedbb3dd342214 (diff)
Update Windows Build ID step to use pwsh syntax
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/qatest.yaml14
1 files changed, 7 insertions, 7 deletions
diff --git a/.github/workflows/qatest.yaml b/.github/workflows/qatest.yaml
index f3f93a9c55..43fdb86b7e 100644
--- a/.github/workflows/qatest.yaml
+++ b/.github/workflows/qatest.yaml
@@ -67,13 +67,13 @@ jobs:
if: matrix.os == 'windows'
shell: pwsh
run: |
- if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
- echo "BUILD_ID=${{ github.event.inputs.build_id }}" >> $GITHUB_ENV
- echo "ARTIFACTS_URL=https://api.github.com/repos/secondlife/viewer/actions/runs/${{ github.event.inputs.build_id }}/artifacts" >> $GITHUB_ENV
- else
- echo "BUILD_ID=${{ github.event.workflow_run.id }}" >> $GITHUB_ENV
- echo "ARTIFACTS_URL=https://api.github.com/repos/secondlife/viewer/actions/runs/${{ github.event.workflow_run.id }}/artifacts" >> $GITHUB_ENV
- fi
+ if ("${{ github.event_name }}" -eq "workflow_dispatch") {
+ echo "BUILD_ID=${{ github.event.inputs.build_id }}" | Out-File -FilePath $env:GITHUB_ENV -Append
+ 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
+ } else {
+ echo "BUILD_ID=${{ github.event.workflow_run.id }}" | Out-File -FilePath $env:GITHUB_ENV -Append
+ 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
+ }
- name: Temporarily Allow PowerShell Scripts (Windows)
if: matrix.os == 'windows'