Skip to content

Commit

Permalink
kernelCTF: GHA: PR check: allow check bashed on SHA hash
Browse files Browse the repository at this point in the history
  • Loading branch information
koczkatamas authored Apr 15, 2024
1 parent 9631952 commit 2771e27
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/kernelctf-submission-verification.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ on:
prNumber:
description: 'PR number'
type: number
required: true
shaHash:
description: 'SHA hash'
permissions: {}
env:
PR_REF: ${{ github.event_name == 'workflow_dispatch' && format('refs/pull/{0}/merge', github.event.inputs.prNumber) || github.event.pull_request.head.sha }}
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 }}
jobs:
structure_check:
# if labeling triggered the job then only run in case of the "recheck" label
Expand Down

0 comments on commit 2771e27

Please sign in to comment.