File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
actions/checkForPackageChanges Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 33 pull_request :
44 types : [opened, ready_for_review, reopened]
55 paths :
6- - src/**
6+ - ' src/**'
7+ - ' !src/**/*.md'
78 workflow_dispatch :
89concurrency :
910 group : ${{ github.workflow }}-${{ github.ref_name }}
You can’t perform that action at this time.
0 commit comments