Skip to content

Commit 933028d

Browse files
committed
kernelCTF: GHA: fix verify all workflow
1 parent 71cdaa2 commit 933028d

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

.github/workflows/kernelctf-submission-verification.yaml

+14-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,19 @@ on:
33
pull_request_target:
44
types: [opened, synchronize, reopened, labeled]
55
paths: [pocs/linux/kernelctf/**]
6+
workflow_call:
7+
inputs:
8+
prNumber:
9+
description: 'PR number'
10+
type: number
11+
shaHash:
12+
description: 'SHA hash'
13+
type: string
14+
skipRepro:
15+
description: 'Skip reproduction'
16+
type: boolean
17+
required: false
18+
default: false
619
workflow_dispatch:
720
inputs:
821
prNumber:
@@ -17,7 +30,7 @@ on:
1730
default: false
1831
permissions: {}
1932
env:
20-
PR_REF: ${{ github.event_name == 'workflow_dispatch' && (github.event.inputs.shaHash || format('refs/pull/{0}/merge', github.event.inputs.prNumber)) || github.event.pull_request.head.sha }}
33+
PR_REF: ${{ contains(github.event_name, 'workflow_') && (github.event.inputs.shaHash || format('refs/pull/{0}/merge', github.event.inputs.prNumber)) || github.event.pull_request.head.sha }}
2134
jobs:
2235
structure_check:
2336
# if labeling triggered the job then only run in case of the "recheck" label

.github/workflows/kernelctf-verify-all.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Verify all PRs again
1+
name: kernelCTF verify all PRs again
22
on:
33
workflow_dispatch:
44
inputs:
@@ -13,10 +13,10 @@ on:
1313
default: false
1414
permissions: {}
1515
jobs:
16-
tests:
16+
verify:
1717
strategy:
1818
matrix:
19-
pr: ${{ fromJSON(inputs.prs) }}
19+
pr: ${{ fromJSON(format('[{0}]', inputs.prs)) }}
2020
fail-fast: false # do not cancel test of other targets
2121
uses: ./.github/workflows/kernelctf-submission-verification.yaml
2222
secrets: inherit

0 commit comments

Comments
 (0)