Skip to content

Commit d9b18a2

Browse files
[SYCL][CI] Parametrize Coverity workflow dispatch (#20456)
This is useful for performing out-of-cycle tests, or checking specific branches.
1 parent eb9916a commit d9b18a2

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

.github/workflows/sycl-coverity.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
name: Coverity
22
on:
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

@@ -27,7 +39,7 @@ jobs:
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" \

0 commit comments

Comments
 (0)