Skip to content

Commit

Permalink
Fix Deprecation Warnings
Browse files Browse the repository at this point in the history
Signed-off-by: UdBe <[email protected]>
  • Loading branch information
UdBe committed Oct 22, 2024
1 parent 3d88248 commit 9126665
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions scripts/ib_pipelines_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import csv
from datetime import datetime, timedelta, timezone
import sys
import os
import re
import requests

Expand Down Expand Up @@ -311,14 +312,15 @@ def run(self):
self.print_summary()

# Check if there are failed pipelines or pipelines with 'not found' rapidfort-scan jobs
if self.failed_pipelines or self.not_found_pipelines:
print("::set-output name=workflow-status::failed")
if self.failed_pipelines or self.not_found_pipelines or self.partial_coverage_pipelines:
with open(os.getenv('GITHUB_ENV'), 'a', encoding='utf-8') as env_file:
env_file.write("workflow_status=failed\n")
sys.exit(1) # Exit with non-zero status
else:
print("::set-output name=workflow-status::passed")
with open(os.getenv('GITHUB_ENV'), 'a', encoding='utf-8') as env_file:
env_file.write("workflow_status=passed\n")
sys.exit(0) # Exit with zero status


if __name__ == "__main__":
checker = PipelineChecker()
checker.run()

0 comments on commit 9126665

Please sign in to comment.