Skip to content

Commit

Permalink
Exit with 1 if tests return with status 'FAILED'
Browse files Browse the repository at this point in the history
  • Loading branch information
mpartio committed Apr 19, 2024
1 parent d78d985 commit 13e212a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/rpmbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ jobs:
import time
import datetime
import os
import sys
batch = boto3.client('batch',
aws_access_key_id="${{ secrets.AWS_ACCESS_KEY_ID }}",
aws_secret_access_key="${{ secrets.AWS_SECRET_ACCESS_KEY }}",
Expand All @@ -241,6 +242,9 @@ jobs:
print(f"status={status['status']}", file=fh)
print(f"logstream-name={status['attempts'][0]['container']['logStreamName']}", file=fh)
if status['status'] == 'FAILED':
sys.exit(1)
- name: Retrieve logs
if: always()
id: retrieve-logs
Expand Down

0 comments on commit 13e212a

Please sign in to comment.