Skip to content

Commit 40d0203

Browse files
authored
Merge branch 'main' into logger-readme
2 parents fee60ec + 951f816 commit 40d0203

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/actions/checkForPackageChanges/action.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,12 @@ runs:
3232
3333
3434
if [ "${EVENT_NAME}" = "pull_request" ]; then
35-
changes=$(git diff "${PR_BASE_SHA}".."${PR_HEAD_SHA}" --ignore-all-space --name-only -- src/)
35+
changes=$(git diff "${PR_BASE_SHA}..${PR_HEAD_SHA}" --ignore-all-space --name-only -- \
36+
'src/' ':(glob,exclude)src/**/*.md')
3637
else
3738
# Fetch the parent commit SHA dynamically, ensuring we're always looking at the immediate predecessor.
38-
changes=$(git diff $(git rev-parse "${REF_NAME}^") "${REF_NAME}" --ignore-all-space --name-only -- src/)
39+
changes=$(git diff "$(git rev-parse "${REF_NAME}^")" "${REF_NAME}" --ignore-all-space --name-only -- \
40+
'src/' ':(glob,exclude)src/**/*.md')
3941
fi
4042
4143
if [ -n "$changes" ]; then

.github/workflows/validatePackageChangesOnPr.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ on:
33
pull_request:
44
types: [opened, ready_for_review, reopened]
55
paths:
6-
- src/**
6+
- 'src/**'
7+
- '!src/**/*.md'
78
workflow_dispatch:
89
concurrency:
910
group: ${{ github.workflow }}-${{ github.ref_name }}

0 commit comments

Comments
 (0)