Skip to content

Commit

Permalink
${{ job.status }} -> integer
Browse files Browse the repository at this point in the history
  • Loading branch information
rickychilcott committed Jul 18, 2024
1 parent b9ebf95 commit 0151e83
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,24 @@ jobs:
- name: Report to Code Climate
if: always()
run: ./cc-test-reporter after-build --exit-code $?
run: |
case "${{ job.status }}" in
"success")
exit_code=0
;;
"failure")
exit_code=1
;;
"cancelled")
exit_code=99
;;
*)
echo "Unknown job status: ${{ job.status }}"
exit_code=999
;;
esac
./cc-test-reporter after-build --exit-code $exit_code
# - name: Cache Onebox Data and Views
# uses: actions/cache@v2
Expand Down

0 comments on commit 0151e83

Please sign in to comment.