Skip to content

Commit 57d693c

Browse files
authored
fix: restricting when CI is ran to remove repetitions (#219)
1 parent 2bc18ed commit 57d693c

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,29 @@ name: "CI: Build Test"
22

33
on:
44
push:
5-
branches-ignore:
6-
- "releases/**"
5+
branches: [ $default-branch ]
76
paths-ignore:
87
- "**.md"
98
pull_request:
9+
types:
10+
- opened
11+
- reopened
12+
- synchronize
13+
- ready_for_review
1014
paths-ignore:
1115
- "**.md"
1216

1317
jobs:
18+
results:
19+
if: ${{ always() }}
20+
runs-on: ubuntu-latest
21+
name: Build (matrix)
22+
needs: build
23+
steps:
24+
- name: Check build matrix status
25+
if: ${{ needs.build.result != 'success' }}
26+
run: exit 1
27+
1428
build:
1529
name: Build
1630
strategy:

0 commit comments

Comments
 (0)