File tree Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -197,10 +197,16 @@ jobs:
197
197
shell : pwsh
198
198
run : ./it/compare-generation.ps1 -descriptionUrl ${{ matrix.description }} -language ${{ matrix.language }}
199
199
continue-on-error : ${{ steps.check-suppressed.outputs.IS_SUPPRESSED == 'true' }}
200
+ - id : replace_url
201
+ if : always()
202
+ run : |
203
+ ORIGINAL="${{ matrix.description }}"
204
+ REPLACED="${ORIGINAL//[-:<>|\*\?\\\/\.]/_}"
205
+ echo "ARTKEY=$REPLACED" >> $GITHUB_OUTPUT
200
206
- uses : actions/upload-artifact@v3
201
- if : failure ()
207
+ if : always ()
202
208
with :
203
- name : idempotency-artifacts
209
+ name : idempotency-${{ matrix.language }}-${{ steps.replace_url.outputs.ARTKEY }}
204
210
path : idempotency-folder*.zip
205
211
206
212
cleanup :
Original file line number Diff line number Diff line change @@ -97,17 +97,19 @@ if ($HashString1 -eq $HashString2) {
97
97
}
98
98
else {
99
99
Write-Error " The content of the folders is NOT identical"
100
+ $archivePath1 = Join-Path $rootPath - ChildPath " idempotency-folder1.zip"
101
+ $archivePath2 = Join-Path $rootPath - ChildPath " idempotency-folder2.zip"
100
102
101
- if (Test-Path " idempotency-folder1.zip " ) {
102
- Remove-Item " idempotency-folder1.zip " - Force
103
+ if (Test-Path $archivePath1 ) {
104
+ Remove-Item $archivePath1 - Force
103
105
}
104
- if (Test-Path " idempotency-folder2.zip " ) {
105
- Remove-Item " idempotency-folder2.zip " - Force
106
+ if (Test-Path $archivePath2 ) {
107
+ Remove-Item $archivePath2 - Force
106
108
}
107
109
108
110
if ($dev -eq $false ) {
109
- Compress-Archive - Path $tmpFolder1 - DestinationPath " idempotency-folder1.zip "
110
- Compress-Archive - Path $tmpFolder1 - DestinationPath " idempotency-folder2.zip "
111
+ Compress-Archive - Path $tmpFolder1 - DestinationPath $archivePath1
112
+ Compress-Archive - Path $tmpFolder1 - DestinationPath $archivePath2
111
113
Exit 1
112
114
}
113
115
}
You can’t perform that action at this time.
0 commit comments