File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 10
10
description : ' commit ID to package'
11
11
preserveIntermediateArtifacts :
12
12
description : ' preserve intermediate artifacts?'
13
+ default : 0
13
14
downloadPublicVersion :
14
15
description : ' public version # to test against'
15
16
downloadPreviousRun :
43
44
echo "::warning ::Using commit ID '${{ github.event.inputs.commitIdToPackage }}' for building and packaging SDK and tests."
44
45
fi
45
46
fi
47
+
46
48
- name : log if preserving intermediate artifacts
47
- if : ${{ !(github.event.inputs.preserveIntermediateArtifacts == 0) }}
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
+ )
48
56
run : echo "::warning ::Intermediate artifacts will be preserved."
49
57
50
58
build_tools :
@@ -539,7 +547,12 @@ jobs:
539
547
name : cleanup-artifacts
540
548
runs-on : ubuntu-latest
541
549
needs : [merge_packages]
542
- if : ${{ (github.event.inputs.preserveIntermediateArtifacts == 0 || github.event.inputs.preserveIntermediateArtifacts == '') && 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
+ )
543
556
steps :
544
557
- uses : geekyeggo/delete-artifact@v1
545
558
with :
You can’t perform that action at this time.
0 commit comments