Skip to content

Commit 8d3d656

Browse files
committed
Fix Dependency error upon merge
1 parent b83c413 commit 8d3d656

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/deploy.production.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ permissions:
1919

2020
jobs:
2121
dependency-review:
22+
if: github.event_name == 'pull_request' || github.event_name == 'merge_group'
2223
runs-on: ubuntu-latest
2324
steps:
2425
- name: Dependency Review

.github/workflows/deploy.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
- master
7+
pull_request:
8+
merge_group:
79
workflow_dispatch:
810

911
env:
@@ -21,6 +23,9 @@ permissions:
2123

2224
jobs:
2325
dependency-review:
26+
# This condition ensures that the following step or job only runs when the workflow is triggered by either a pull request event or a merge group event.
27+
# It helps to limit execution to relevant GitHub events, such as when code is proposed for merging or when multiple pull requests are grouped for merging.
28+
if: github.event_name == 'pull_request' || github.event_name == 'merge_group'
2429
runs-on: ubuntu-latest
2530
steps:
2631
- name: Dependency Review

0 commit comments

Comments
 (0)