File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 41
41
type : string
42
42
default : " ubuntu-latest"
43
43
44
+ env :
45
+ VERSION_SUFFIX_OVERRIDE : ${{ github.event_name == 'pull_request' && format('/p:VersionSuffix=pr.{0}', github.event.number) || '' }}
46
+
44
47
jobs :
45
48
46
49
test :
@@ -159,7 +162,7 @@ jobs:
159
162
env :
160
163
CI : false
161
164
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 }}
163
166
164
167
- name : Build and archive test project
165
168
if : ${{ inputs.requiresNugets }}
@@ -169,6 +172,7 @@ jobs:
169
172
${{ env.BUILD_SCRIPT }} -restore -ci -build -projects ${{ env.TEST_PROJECT_PATH }}
170
173
/p:PrepareForHelix=true
171
174
/bl:${{ github.workspace }}/artifacts/log/Debug/PrepareForHelix.binlog
175
+ ${{ env.VERSION_SUFFIX_OVERRIDE }}
172
176
173
177
# Workaround for bug in Azure Functions Worker SDK. See https://github.com/Azure/azure-functions-dotnet-worker/issues/2969.
174
178
- name : Rebuild for Azure Functions project
You can’t perform that action at this time.
0 commit comments