File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -21,15 +21,16 @@ jobs:
21
21
runs-on : ubuntu-latest
22
22
23
23
steps :
24
- - name : Calculate file differences
25
-
26
- id : diff
27
- with :
28
- token : ${{ secrets.GITHUB_TOKEN }}
29
-
30
24
- name : Checkout
31
25
uses : actions/checkout@v3
32
26
27
+ - name : Calculate file differences
28
+ id : changed-files
29
+ uses : tj-actions/changed-files@v35
30
+ with :
31
+ json : true
32
+ json_raw_format : true
33
+
33
34
- name : Generate testing matrix
34
35
uses : actions/github-script@v6
35
36
id : generator
38
39
script : |
39
40
const script = require(`${process.env.GITHUB_WORKSPACE}/genMatrix.js`)
40
41
return script(
41
- ${{ steps.diff .outputs.added }},
42
- ${{ steps.diff .outputs.modified }},
43
- ${{ steps.diff .outputs.renamed }},
42
+ ${{ steps.changed-files .outputs.added_files }},
43
+ ${{ steps.changed-files .outputs.modified_files }},
44
+ ${{ steps.changed-files .outputs.renamed_files }},
44
45
);
45
46
46
47
outputs :
You can’t perform that action at this time.
0 commit comments