Skip to content

Commit

Permalink
workflows: disallow push for sel4test-hw
Browse files Browse the repository at this point in the history
The workflow is intended to only run for pull_request_target.

Signed-off-by: Gerwin Klein <[email protected]>
  • Loading branch information
lsf37 committed Feb 11, 2024
1 parent f9de1b5 commit 00fe501
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/sel4test-hw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ jobs:
hw-build:
name: HW Build
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' ||
github.event_name == 'pull_request_target' &&
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')) ||
Expand Down

0 comments on commit 00fe501

Please sign in to comment.