Skip to content

Commit e92f345

Browse files
committed
on-drone-ci-complete.yml: use valid ternary syntax, committed to main
1 parent a10e259 commit e92f345

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/on-droneci-complete.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
echo "This step should succeed"
2323
true
2424
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:
2626
- uses: actions/github-script@v7
2727
with:
2828
script: |
@@ -31,7 +31,7 @@ jobs:
3131
owner: context.repo.owner,
3232
repo: context.repo.repo,
3333
sha: '${{ inputs.github_sha }}',
34-
state: '${{ job.status == 'success' && "success" || "failure" }}',
34+
state: ${{ job.status == 'success' && 'success' || 'failure' }}
3535
})
3636
3737
# This one should fail
@@ -44,7 +44,7 @@ jobs:
4444
echo "This step should fail"
4545
false
4646
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:
4848
- uses: actions/github-script@v7
4949
with:
5050
script: |
@@ -53,5 +53,5 @@ jobs:
5353
owner: context.repo.owner,
5454
repo: context.repo.repo,
5555
sha: '${{ inputs.github_sha }}',
56-
state: '${{ job.status == 'success' && "success" || "failure" }}',
56+
state: ${{ job.status == 'success' && 'success' || 'failure' }}
5757
})

0 commit comments

Comments
 (0)