File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed
Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments