File tree Expand file tree Collapse file tree 1 file changed +25
-4
lines changed Expand file tree Collapse file tree 1 file changed +25
-4
lines changed Original file line number Diff line number Diff line change 1
- name : Check for Enterprise Copyright
1
+ name : Detect Unexpected EE Changes
2
2
3
3
on :
4
4
pull_request :
5
5
6
+ concurrency :
7
+ group : ${{ github.workflow }}-${{ github.ref }}
8
+ cancel-in-progress : ${{ github.event_name == 'pull_request' }}
9
+
6
10
jobs :
7
- check-copyright :
11
+ check-copyright-and-ee-files :
8
12
runs-on : ubuntu-latest
9
13
steps :
10
14
- name : Checkout
11
- uses : actions/checkout@v3
15
+ uses : actions/checkout@v4
12
16
13
17
- name : Find Enterprise Copyright
14
18
shell : bash
15
19
run : |
16
20
set -e
17
21
18
- workflow_file=$(grep -rnl "^name:[[:space:]]*Check for Enterprise Copyright " .github/workflows/*.yml | head -n1)
22
+ workflow_file=$(grep -rnl "^name:[[:space:]]*Detect Unexpected EE Changes " .github/workflows/*.yml | head -n1)
19
23
echo "Detected workflow file: $workflow_file"
20
24
21
25
all_files=$(grep -r -F -l "This software is copyright Kong Inc. and its licensors." .)
32
36
echo "No enterprise copyright found."
33
37
fi
34
38
39
+ - name : Get changed EE files
40
+ id : changed-ee-files
41
+ uses : kong/changed-files@4edd678ac3f81e2dc578756871e4d00c19191daf
42
+ with :
43
+ files : |
44
+ spec-ee/**
45
+ plugins-ee/**
46
+ kong/enterprise_edition/**
47
+ kong/plugins/*-advanced/**
48
+ changelog/**/*-ee/**
49
+
50
+ - name : Detect EE files
51
+ if : steps.changed-ee-files.outputs.any_changed == 'true'
52
+ run : |
53
+ echo "The following unexpected EE files were detected:"
54
+ echo "${{ steps.changed-ee-files.outputs.all_changed_files }}"
55
+ exit 1
You can’t perform that action at this time.
0 commit comments