Skip to content

Commit 34c8d18

Browse files
committed
Try substitition for disallowed github workflow step ana06/[email protected].
1 parent d1a9a4c commit 34c8d18

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/check_diffs.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,21 @@ jobs:
2727
- uses: actions/setup-python@v5
2828
with:
2929
python-version: '3.10'
30-
- id: files
31-
uses: Ana06/[email protected]
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

0 commit comments

Comments
 (0)