File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 22
22
echo "This step should succeed"
23
23
true
24
24
25
- # Need to do this manually or the result won't be visible within the PR
25
+ # Need to update commit status manually, or the result won't be visible within the PR:
26
26
- uses : actions/github-script@v7
27
27
with :
28
28
script : |
31
31
owner: context.repo.owner,
32
32
repo: context.repo.repo,
33
33
sha: '${{ inputs.github_sha }}',
34
- state: ' ${{ job.status == 'success' && " success" || " failure" }}',
34
+ state: ${{ job.status == 'success' && ' success' || ' failure' }}
35
35
})
36
36
37
37
# This one should fail
44
44
echo "This step should fail"
45
45
false
46
46
47
- # Need to do this manually or the result won't be visible within the PR
47
+ # Need to update commit status manually, or the result won't be visible within the PR:
48
48
- uses : actions/github-script@v7
49
49
with :
50
50
script : |
53
53
owner: context.repo.owner,
54
54
repo: context.repo.repo,
55
55
sha: '${{ inputs.github_sha }}',
56
- state: ' ${{ job.status == 'success' && " success" || " failure" }}',
56
+ state: ${{ job.status == 'success' && ' success' || ' failure' }}
57
57
})
You can’t perform that action at this time.
0 commit comments