Skip to content

Commit 8285059

Browse files
committed
compliance on pr only
Signed-off-by: Anas Nashif <[email protected]>
1 parent 5ddcf31 commit 8285059

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/compliance.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ jobs:
6363
exit 1
6464
6565
- name: Run Compliance Tests
66+
if: github.event_name == 'pull_request'
6667
continue-on-error: true
6768
id: compliance
6869
env:
@@ -78,13 +79,15 @@ jobs:
7879
-c origin/${BASE_REF}..
7980
8081
- name: upload-results
82+
if: github.event_name == 'pull_request'
8183
uses: actions/upload-artifact@v4
8284
continue-on-error: true
8385
with:
8486
name: compliance.xml
8587
path: compliance.xml
8688

8789
- name: check-warns
90+
if: github.event_name == 'pull_request'
8891
run: |
8992
if [[ ! -s "compliance.xml" ]]; then
9093
exit 1;

0 commit comments

Comments
 (0)