File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ HEAD_SHA="$2"
88git fetch --prune --unshallow 2> /dev/null || git fetch --prune
99
1010# Get changed files in plugins subdirectories
11- if [ " $BASE_SHA " = " release" ]; then
11+ if [ " $BASE_SHA " = " release" ] || [ " $BASE_SHA " = " main " ] ; then
1212 CHANGED_FILES=$( git diff --name-only HEAD~1 HEAD | grep ' ^plugins/[^/]\+/' || true)
1313else
1414 CHANGED_FILES=$( git diff --name-only " $BASE_SHA " " $HEAD_SHA " | grep ' ^plugins/[^/]\+/' || true)
Original file line number Diff line number Diff line change 3131 - name : Get changed plugin directory
3232 id : plugin
3333 run : |
34- bash .github/scripts/get_plugin_slug.sh ${{ github.event.pull_request.base.sha }} ${{ github.sha }}
34+ if [ "${{ github.event_name }}" = "push" ]; then
35+ bash .github/scripts/get_plugin_slug.sh main
36+ else
37+ bash .github/scripts/get_plugin_slug.sh ${{ github.event.pull_request.base.sha }} ${{ github.sha }}
38+ fi
3539
3640 - name : Detect changed plugins with quality config
3741 id : detect
Original file line number Diff line number Diff line change 3838 - name : Get changed plugin directory
3939 id : plugin
4040 run : |
41- bash .github/scripts/get_plugin_slug.sh ${{ github.event.pull_request.base.sha }} ${{ github.sha }}
41+ if [ "${{ github.event_name }}" = "push" ]; then
42+ bash .github/scripts/get_plugin_slug.sh main
43+ else
44+ bash .github/scripts/get_plugin_slug.sh ${{ github.event.pull_request.base.sha }} ${{ github.sha }}
45+ fi
4246
4347 - name : Detect changed plugins with quality config
4448 id : detect
Original file line number Diff line number Diff line change 3737 - name : Get changed plugin directory
3838 id : plugin
3939 run : |
40- bash .github/scripts/get_plugin_slug.sh ${{ github.event.pull_request.base.sha }} ${{ github.sha }}
40+ if [ "${{ github.event_name }}" = "push" ]; then
41+ bash .github/scripts/get_plugin_slug.sh main
42+ else
43+ bash .github/scripts/get_plugin_slug.sh ${{ github.event.pull_request.base.sha }} ${{ github.sha }}
44+ fi
4145
4246 - name : Detect changed plugin with E2E config
4347 id : detect
You can’t perform that action at this time.
0 commit comments