Skip to content

Commit 459e8e7

Browse files
author
NOTEBOOK-SAUER\chris
committed
change audit job run
1 parent 5606889 commit 459e8e7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/nextjs.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
push:
66
branches:
77
- "**" # Lint and build on all branches
8+
pull_request:
9+
types:
10+
- closed
811

912
jobs:
1013
# Linting Job
@@ -49,7 +52,7 @@ jobs:
4952
audit:
5053
name: Audit Dependencies
5154
runs-on: ubuntu-latest
52-
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release')
55+
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release') && github.event.pull_request.merged == true
5356
steps:
5457
- name: Checkout code
5558
uses: actions/checkout@v3

0 commit comments

Comments
 (0)