File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change 1
1
name : CPP binary SDK packaging
2
2
on :
3
+ push :
4
+ branches :
5
+ # Run a full packaging step any time a new branch is merged into dev.
6
+ - dev
3
7
workflow_dispatch :
4
8
inputs :
5
9
commitIdToPackage :
40
44
echo "::warning ::Using commit ID '${{ github.event.inputs.commitIdToPackage }}' for building and packaging SDK and tests."
41
45
fi
42
46
fi
43
- if [[ "${{ github.event.inputs.preserveIntermediateArtifacts }}" != "0" ]]; then
44
- echo "::warning ::Intermediate artifacts will be preserved."
45
- fi
47
+
48
+ - name : log if preserving intermediate artifacts
49
+ if : |
50
+ github.event.inputs.preserveIntermediateArtifacts != 0 && github.event.inputs.preserveIntermediateArtifacts != '' &&
51
+ github.event.inputs.downloadPublicVersion == '' && github.event.inputs.downloadPreviousRun == ''
52
+ run : echo "::warning ::Intermediate artifacts will be preserved."
46
53
47
54
build_tools :
48
55
name : build-tools-${{ matrix.tools_platform }}
@@ -536,7 +543,12 @@ jobs:
536
543
name : cleanup-artifacts
537
544
runs-on : ubuntu-latest
538
545
needs : [merge_packages]
539
- if : ${{ github.event.inputs.preserveIntermediateArtifacts == 0 && github.event.inputs.downloadPublicVersion == '' && github.event.inputs.downloadPreviousRun == '' }}
546
+ if : |
547
+ (
548
+ (github.event.inputs.preserveIntermediateArtifacts == 0 || github.event.inputs.preserveIntermediateArtifacts == '')
549
+ && github.event.inputs.downloadPublicVersion == ''
550
+ && github.event.inputs.downloadPreviousRun == ''
551
+ )
540
552
steps :
541
553
- uses : geekyeggo/delete-artifact@v1
542
554
with :
You can’t perform that action at this time.
0 commit comments