Skip to content

Commit b4a0a66

Browse files
committed
Only check plugins
1 parent 3bfab42 commit b4a0a66

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

.github/workflows/code-quality.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ jobs:
4646
CHECKED_PLUGINS=()
4747
4848
for file in $CHANGED_FILES; do
49+
# Skip if this is not a file within a plugin subdirectory
50+
if [[ ! "$file" =~ ^plugins/[^/]+/.+ ]]; then
51+
continue
52+
fi
53+
4954
plugin=$(echo $file | cut -d/ -f2)
5055
5156
# Skip if we already checked this plugin

.github/workflows/codeception.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ jobs:
5959
CHECKED_PLUGINS=()
6060
6161
for file in $CHANGED_FILES; do
62+
# Skip if this is not a file within a plugin subdirectory
63+
if [[ ! "$file" =~ ^plugins/[^/]+/.+ ]]; then
64+
continue
65+
fi
66+
6267
plugin=$(echo $file | cut -d/ -f2)
6368
6469
# Skip if we already checked this plugin

.github/workflows/plugin-artifact-for-pr.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ jobs:
2121
id: plugin
2222
run: |
2323
git fetch --prune --unshallow
24-
plugin=$(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep '^plugins/' | head -1 | cut -d/ -f2)
24+
# Get only files within plugin subdirectories
25+
plugin=$(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep '^plugins/[^/]\+/' | head -1 | cut -d/ -f2)
2526
echo "slug=$plugin" >> $GITHUB_OUTPUT
2627
2728
- name: Create plugin artifact

0 commit comments

Comments
 (0)