Skip to content

Commit eb848b4

Browse files
committed
Make preserve intermediate artifacts step treat blank as 0 (working CL now)
1 parent 58d1034 commit eb848b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/cpp-packaging.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
echo "::warning ::Using commit ID '${{ github.event.inputs.commitIdToPackage }}' for building and packaging SDK and tests."
4545
fi
4646
fi
47-
if [[ "${{ github.event.inputs.preserveIntermediateArtifacts }}" != "0" ]]; then
47+
if [[ "${{ github.event.inputs.preserveIntermediateArtifacts }}" != "0" && -n "${{ github.event.inputs.preserveIntermediateArtifacts }}" ]]; then
4848
echo "::warning ::Intermediate artifacts will be preserved."
4949
fi
5050
@@ -540,7 +540,7 @@ jobs:
540540
name: cleanup-artifacts
541541
runs-on: ubuntu-latest
542542
needs: [merge_packages]
543-
if: ${{ github.event.inputs.preserveIntermediateArtifacts == 0 && github.event.inputs.downloadPublicVersion == '' && github.event.inputs.downloadPreviousRun == '' }}
543+
if: ${{ (github.event.inputs.preserveIntermediateArtifacts == 0 || github.event.inputs.preserveIntermediateArtifacts == '') && github.event.inputs.downloadPublicVersion == '' && github.event.inputs.downloadPreviousRun == '' }}
544544
steps:
545545
- uses: geekyeggo/delete-artifact@v1
546546
with:

0 commit comments

Comments
 (0)