diff --git a/.github/workflows/e2e-suite.yml b/.github/workflows/e2e-suite.yml index bb8a644..8b8f1f9 100644 --- a/.github/workflows/e2e-suite.yml +++ b/.github/workflows/e2e-suite.yml @@ -17,6 +17,14 @@ on: options: - 'true' - 'false' + test_report_upload: + description: 'Indicates whether to upload the test report to object storage. Defaults to "false"' + type: choice + required: false + default: 'false' + options: + - 'true' + - 'false' push: branches: - main @@ -65,8 +73,8 @@ jobs: ls -l hack/ cp hack/*_py_metadata_test_report.xml . - - name: Copy report to root and Upload test results - if: always() + - name: Add variables and upload test results + if: always() && github.repository == 'linode/py-metadata' && (github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs.test_report_upload == 'true')) run: | filename=$(ls | grep -E '^[0-9]{12}_py_metadata_test_report\.xml$') python3 e2e_scripts/tod_scripts/xml_to_obj_storage/scripts/add_gha_info_to_xml.py \