Skip to content

Commit ceacd35

Browse files
committed
simplify
Signed-off-by: Anas Nashif <[email protected]>
1 parent 5c04ef4 commit ceacd35

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

.github/workflows/compliance.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,7 @@ on:
44
workflow_call:
55

66
jobs:
7-
check_compliance_push:
8-
if: github.event_name == 'push'
9-
runs-on: ubuntu-22.04
10-
name: Run compliance checks on patch series (PR)
11-
steps:
12-
- name: Do nothing
13-
run: |
14-
echo "Doing nothing"
15-
167
check_compliance:
17-
if: github.event_name == 'pull_request'
188
runs-on: ubuntu-22.04
199
name: Run compliance checks on patch series (PR)
2010
steps:

.github/workflows/twister.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,13 @@ concurrency:
2121

2222
jobs:
2323
compliance-check:
24+
if: github.event_name == 'pull_request'
2425
uses: ./.github/workflows/compliance.yml
2526

2627
twister-build-prep:
2728
needs: compliance-check
29+
if: |
30+
always() && (needs.compliance-check.result == 'success' || needs.compliance-check.result == 'skipped')
2831
uses: ./.github/workflows/twister-prep.yaml
2932

3033
twister-build:

0 commit comments

Comments
 (0)