File tree Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Original file line number Diff line number Diff line change 11name : Coverity
22on :
33 workflow_dispatch :
4+ inputs :
5+ description :
6+ description : ' Custom build description'
7+ required : true
8+ type : string
9+ default : ' Out-of-order Coverity scan'
10+ ref :
11+ description : ' Git ref to checkout and scan'
12+ required : true
13+ type : string
14+ default : ' sycl'
15+
416 schedule :
517 - cron : ' 0 0 * * 0'
618
2739 - uses : ./devops/actions/cached_checkout
2840 with :
2941 path : src
30- ref : ${{ github.sha }}
42+ ref : ${{ inputs.ref || github.sha }}
3143 cache_path : " /__w/repo_cache/"
3244
3345 - name : Get coverity tool
@@ -56,10 +68,15 @@ jobs:
5668
5769 - name : Submit build
5870 run : |
71+ default_description="${{ inputs.description }}"
72+ if [[ -z $default_description ]]; then
73+ default_description="Regular build"
74+ fi
75+
5976 # Initialize a build. Fetch a cloud upload url.
6077 curl -X POST \
61- -d version="sycl: ${{ github.sha }}" \
62- -d description="Regular build " \
78+ -d version="${{ inputs.ref || github.sha }}" \
79+ -d description="$default_description " \
6380 -d email=${{ secrets.COVERITY_EMAIL }} \
6481 -d token=${{ secrets.COVERITY_TOKEN }} \
6582 -d file_name="intel_llvm.tgz" \
You can’t perform that action at this time.
0 commit comments