File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -67,13 +67,13 @@ jobs:
67
67
if : matrix.os == 'windows'
68
68
shell : pwsh
69
69
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
+ }
77
77
78
78
- name : Temporarily Allow PowerShell Scripts (Windows)
79
79
if : matrix.os == 'windows'
You can’t perform that action at this time.
0 commit comments