Skip to content

Commit 2138ec9

Browse files
committed
Reduce metadata changes workflow runs by triggering only when important config files are changed
1 parent ae046fe commit 2138ec9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/metadatachanges.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33
# This is a basic workflow to help you get started with Actions
44

55
name: "Metadata Changes"
6-
# Controls when the action will run. Triggers the workflow on push or pull request
7-
# events but only for the master branch
86
on:
97
workflow_dispatch:
108
pull_request:
11-
types: [opened, synchronize, reopened, closed]
129
branches:
1310
- dev
11+
paths:
12+
- openApiDocs/**
13+
- src/Authentication/Authentication/custom/common/MgCommandMetadata.json
14+
- docs/OpenApiInfo/**
1415

1516
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1617
jobs:

0 commit comments

Comments
 (0)