File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 2727 - uses : actions/setup-python@v5
2828 with :
2929 python-version : ' 3.10'
30- - id : files
31- 30+ - id : get_changed_files
31+ uses : actions/github-script@v7
32+ with :
33+ script : |
34+ const pr = await github.rest.pulls.get({
35+ owner: context.repo.owner,
36+ repo: context.repo.repo,
37+ pull_number: context.payload.pull_request.number
38+ });
39+ const files = await github.paginate(github.rest.pulls.listFiles, {
40+ owner: context.repo.owner,
41+ repo: context.repo.repo,
42+ pull_number: context.payload.pull_request.number
43+ });
44+ core.setOutput('files', files.map(f => f.filename).join('\n'));
3245 - id : set-matrix
3346 run : |
3447 python .github/scripts/check_diff.py ${{ steps.files.outputs.all }} >> $GITHUB_OUTPUT
You can’t perform that action at this time.
0 commit comments