Skip to content

Commit b00dc2c

Browse files
committed
ci: Fix final status as set by Copilot [ci skip]
1 parent 997813b commit b00dc2c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/R-CMD-check.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,12 @@ jobs:
223223
env:
224224
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
225225
run: |
226-
# Check status of this workflow
227-
state="pending"
226+
# Set status to success if job succeeded, failure otherwise
227+
if [ "${{ job.status }}" == "success" ]; then
228+
state="success"
229+
else
230+
state="failure"
231+
fi
228232
sha=${{ inputs.ref }}
229233
if [ -z "${sha}" ]; then
230234
sha=${{ github.sha }}

0 commit comments

Comments
 (0)