Skip to content

Commit e6befc9

Browse files
committed
Change logging of preserveIntermediateArtifacts to use the same check as it uses later.
1 parent 9efbcde commit e6befc9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/cpp-packaging.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ 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" && -n "${{ github.event.inputs.preserveIntermediateArtifacts }}" ]]; then
48-
echo "::warning ::Intermediate artifacts will be preserved."
49-
fi
47+
- name: log if preserving intermediate artifacts
48+
if: ${{ !(github.event.inputs.preserveIntermediateArtifacts == 0) }}
49+
run: echo "::warning ::Intermediate artifacts will be preserved."
5050

5151
build_tools:
5252
name: build-tools-${{ matrix.tools_platform }}

0 commit comments

Comments
 (0)