Skip to content

Commit 3f68777

Browse files
committed
Add condition to upload XML int test reports on PR/push only
1 parent 7708f87 commit 3f68777

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/e2e-test-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
LINODE_TOKEN: ${{ secrets.LINODE_TOKEN }}
102102

103103
- name: Upload test results
104-
if: always()
104+
if: always() && github.event_name == 'pull_request'
105105
run: |
106106
filename=$(ls | grep -E '^[0-9]{12}_sdk_test_report\.xml$')
107107
python3 e2e_scripts/tod_scripts/xml_to_obj_storage/scripts/add_gha_info_to_xml.py \

.github/workflows/e2e-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
LINODE_TOKEN: ${{ env.LINODE_TOKEN }}
9797

9898
- name: Upload Test Report as Artifact
99-
if: always()
99+
if: always() && github.event_name == 'push'
100100
uses: actions/upload-artifact@v6
101101
with:
102102
name: test-report-file

0 commit comments

Comments
 (0)