Skip to content

Commit

Permalink
workflows: factor out event name guard
Browse files Browse the repository at this point in the history
Signed-off-by: Gerwin Klein <[email protected]>
  • Loading branch information
lsf37 committed Feb 14, 2024
1 parent e5c887e commit 6c7d208
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/sel4test-hw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,14 @@ jobs:
name: Freeze Code
runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request_target' &&
(
github.event.action != 'labeled' &&
(contains(github.event.pull_request.labels.*.name, 'hw-build') ||
contains(github.event.pull_request.labels.*.name, 'hw-test')) ||
github.event_name == 'pull_request_target' &&
github.event.action == 'labeled' &&
(github.event.label.name == 'hw-build' ||
github.event.label.name == 'hw-test') }}
github.event.label.name == 'hw-test')
) }}
outputs:
xml: ${{ steps.repo.outputs.xml }}
steps:
Expand Down

0 comments on commit 6c7d208

Please sign in to comment.