diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5d696e556..741537de3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,16 @@ name: Continuous Integration on: - workflow_dispatch: null + workflow_dispatch: + inputs: + 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 @@ -70,7 +79,7 @@ jobs: SKIP_LINT: 1 - name: Upload test results to bucket - if: github.ref == 'refs/heads/main' && github.event_name == 'push' && always() + if: always() && github.repository == 'linode/linodego' && github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'pull_request' || (github.event_name == 'workflow_dispatch' && inputs.test_report_upload == 'true')) run: | python3 e2e_scripts/tod_scripts/xml_to_obj_storage/scripts/add_gha_info_to_xml.py \ --branch_name "${GITHUB_REF#refs/*/}" \