@@ -410,13 +410,14 @@ jobs:
410
410
with open(github_output, 'a') as output_file:
411
411
print(f'{output_name}=success', file=output_file)
412
412
-if :failure()
413
- run :echo "1" >> "pg_failed_${{ matrix.os }}"
414
- -name :Upload failed artifact
413
+ run :echo "0" >> "pg_result_${{ matrix.os }}"
414
+ -if :success()
415
+ run :echo "1" >> "pg_result_${{ matrix.os }}"
416
+ -name :Upload result artifact
415
417
uses :actions/upload-artifact@v4
416
- if :failure()
417
418
with :
418
- name :" pg_failed_ ${{ matrix.os }}"
419
- path :" pg_failed_ ${{ matrix.os }}"
419
+ name :" pg_result_ ${{ matrix.os }}"
420
+ path :" pg_result_ ${{ matrix.os }}"
420
421
421
422
422
423
# - name: Harden Runner
@@ -848,8 +849,8 @@ jobs:
848
849
-name :Download PG Failed Artifacts
849
850
uses :actions/download-artifact@v4
850
851
with :
851
- path :pg_failed
852
- pattern :pg_failed_ *
852
+ path :pg_result
853
+ pattern :pg_result_ *
853
854
merge-multiple :true
854
855
-name :Ensure required checks
855
856
shell :python
@@ -876,9 +877,10 @@ jobs:
876
877
877
878
# Skip test-go-pg failures on windows
878
879
if job_name == "test-go-pg" and result == "failure":
879
- failed_artifacts = list(Path("pg_failed").glob("pg_failed_*"))
880
- print(failed_artifacts)
881
- if len(failed_artifacts) == 1 and "windows" in str(failed_artifacts[0].name):
880
+ result_artifacts = list(Path("pg_result").glob("pg_result_*"))
881
+ results = {f.name: int(f.read_text()) for f in result_artifacts}
882
+ del results["pg_result_windows-2022"]
883
+ if sum(results.values()) == 0:
882
884
continue
883
885
if result in ["failure", "cancelled"]:
884
886
failed =True