Skip to content

Commit 4826c6a

Browse files
committed
fix up e2e
1 parent 11a4f4e commit 4826c6a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/run-tests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ on:
4141
type: string
4242
default: "ubuntu-latest"
4343

44+
env:
45+
VERSION_SUFFIX_OVERRIDE: ${{ github.event_name == 'pull_request' && format('/p:VersionSuffix=pr.{0}', github.event.number) || '' }}
46+
4447
jobs:
4548

4649
test:
@@ -159,7 +162,7 @@ jobs:
159162
env:
160163
CI: false
161164
run: |
162-
${{ env.BUILD_SCRIPT }} -restore -ci -build -projects ${{ env.TEST_PROJECT_PATH }}
165+
${{ env.BUILD_SCRIPT }} -restore -ci -build -projects ${{ env.TEST_PROJECT_PATH }} ${{ env.VERSION_SUFFIX_OVERRIDE }}
163166
164167
- name: Build and archive test project
165168
if: ${{ inputs.requiresNugets }}
@@ -169,6 +172,7 @@ jobs:
169172
${{ env.BUILD_SCRIPT }} -restore -ci -build -projects ${{ env.TEST_PROJECT_PATH }}
170173
/p:PrepareForHelix=true
171174
/bl:${{ github.workspace }}/artifacts/log/Debug/PrepareForHelix.binlog
175+
${{ env.VERSION_SUFFIX_OVERRIDE }}
172176
173177
# Workaround for bug in Azure Functions Worker SDK. See https://github.com/Azure/azure-functions-dotnet-worker/issues/2969.
174178
- name: Rebuild for Azure Functions project

0 commit comments

Comments
 (0)