2 parents 5f548fe + 37a62f4 commit 5bef3bbCopy full SHA for 5bef3bb
1 file changed
.github/workflows/ci.yml
@@ -1,14 +1,12 @@
1
-# This is a basic workflow to help you get started with MATLAB Actions
2
name: MATLAB Build
3
4
# Controls when the action will run.
5
on:
6
- # Triggers the workflow on push events, but only for the main branch
7
push:
8
- branches: [ main ]
+ branches-ignore: [ main ]
9
10
pull_request:
11
- branches:
+ branches: [ main ]
12
13
# Allows you to run this workflow manually from the Actions tab
14
workflow_dispatch:
@@ -34,7 +32,7 @@ jobs:
34
32
test:
35
33
36
name: Test dev branch
37
- if: ${{ github.event_name == 'pull_request' }}
+ if: ${{ github.event_name == 'pull_request' || github.ref != 'refs/heads/main' }}
38
39
runs-on: ubuntu-latest
40
0 commit comments