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:
37
37
echo "::set-output name=enabled::$enabled"
38
38
- name : skip if the commit or tree was already tested
39
39
id : skip-if-redundant
40
- uses : actions/github-script@v3
40
+ uses : actions/github-script@v6
41
41
if : steps.check-ref.outputs.enabled == 'yes'
42
42
with :
43
43
github-token : ${{secrets.GITHUB_TOKEN}}
44
44
script : |
45
45
try {
46
46
// Figure out workflow ID, commit and tree
47
- const { data: run } = await github.actions.getWorkflowRun({
47
+ const { data: run } = await github.rest. actions.getWorkflowRun({
48
48
owner: context.repo.owner,
49
49
repo: context.repo.repo,
50
50
run_id: context.runId,
54
54
const tree_id = run.head_commit.tree_id;
55
55
56
56
// 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({
58
58
owner: context.repo.owner,
59
59
repo: context.repo.repo,
60
60
per_page: 500,
You can’t perform that action at this time.
0 commit comments