File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -37,14 +37,14 @@ jobs:
3737 echo "::set-output name=enabled::$enabled"
3838 - name : skip if the commit or tree was already tested
3939 id : skip-if-redundant
40- uses : actions/github-script@v3
40+ uses : actions/github-script@v6
4141 if : steps.check-ref.outputs.enabled == 'yes'
4242 with :
4343 github-token : ${{secrets.GITHUB_TOKEN}}
4444 script : |
4545 try {
4646 // Figure out workflow ID, commit and tree
47- const { data: run } = await github.actions.getWorkflowRun({
47+ const { data: run } = await github.rest. actions.getWorkflowRun({
4848 owner: context.repo.owner,
4949 repo: context.repo.repo,
5050 run_id: context.runId,
5454 const tree_id = run.head_commit.tree_id;
5555
5656 // See whether there is a successful run for that commit or tree
57- const { data: runs } = await github.actions.listWorkflowRuns({
57+ const { data: runs } = await github.rest. actions.listWorkflowRuns({
5858 owner: context.repo.owner,
5959 repo: context.repo.repo,
6060 per_page: 500,
You can’t perform that action at this time.
0 commit comments