Skip to content

Commit 023d597

Browse files
committed
ci: run commit-lint job only on PR
Signed-off-by: Francisco Buceta <frbuceta@gmail.com>
1 parent c2b86f1 commit 023d597

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/continuous-integration.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
jobs:
1010
test:
1111
runs-on: ubuntu-latest
12+
timeout-minutes: 5
1213
strategy:
1314
matrix:
1415
node-version: [14, 16, 18] # Maintenance, Active LTS & Current
@@ -37,7 +38,6 @@ jobs:
3738
code-lint:
3839
name: Code Lint
3940
runs-on: ubuntu-latest
40-
timeout-minutes: 60
4141
steps:
4242
- uses: actions/checkout@v3
4343
- uses: actions/setup-node@v3
@@ -50,7 +50,7 @@ jobs:
5050
commit-lint:
5151
name: Commit Lint
5252
runs-on: ubuntu-latest
53-
timeout-minutes: 60
53+
if: ${{ github.event.pull_request }}
5454
steps:
5555
- uses: actions/checkout@v3
5656
with:

0 commit comments

Comments
 (0)