File tree Expand file tree Collapse file tree 1 file changed +20
-4
lines changed Expand file tree Collapse file tree 1 file changed +20
-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
+ # Inverse of the conditional on the cleanup_artifacts step.
50
+ if : |
51
+ !(
52
+ (github.event.inputs.preserveIntermediateArtifacts == 0 || github.event.inputs.preserveIntermediateArtifacts == '')
53
+ && github.event.inputs.downloadPublicVersion == ''
54
+ && github.event.inputs.downloadPreviousRun == ''
55
+ )
56
+ run : echo "::warning ::Intermediate artifacts will be preserved."
46
57
47
58
build_tools :
48
59
name : build-tools-${{ matrix.tools_platform }}
@@ -536,7 +547,12 @@ jobs:
536
547
name : cleanup-artifacts
537
548
runs-on : ubuntu-latest
538
549
needs : [merge_packages]
539
- if : ${{ github.event.inputs.preserveIntermediateArtifacts == 0 && github.event.inputs.downloadPublicVersion == '' && github.event.inputs.downloadPreviousRun == '' }}
550
+ if : |
551
+ (
552
+ (github.event.inputs.preserveIntermediateArtifacts == 0 || github.event.inputs.preserveIntermediateArtifacts == '')
553
+ && github.event.inputs.downloadPublicVersion == ''
554
+ && github.event.inputs.downloadPreviousRun == ''
555
+ )
540
556
steps :
541
557
- uses : geekyeggo/delete-artifact@v1
542
558
with :
You can’t perform that action at this time.
0 commit comments