Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ on:
commit_sha:
description: 'The hash value of the commit.'
required: true
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
Expand Down Expand Up @@ -47,7 +55,7 @@ jobs:
LINODE_TOKEN: ${{ secrets.DX_LINODE_TOKEN }}

- name: Upload test results
if: always()
if: always() && github.repository == 'linode/go-metadata' && (github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs.test_report_upload == 'true'))
run: |
cp hack/*_go_metadata_test_report.xml .
filename=$(ls | grep -E '^[0-9]{12}_go_metadata_test_report\.xml$')
Expand Down