Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: upload test results only on main push #396

Merged
merged 2 commits into from
Oct 5, 2023
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
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ jobs:
SKIP_LINT: 1

- name: Convert JSON Report to XML
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
run: |
filename=$(ls | grep -E '^[0-9]{12}_linodego_test_report\.json')
Expand All @@ -76,6 +77,7 @@ jobs:
GO111MODULE: on

- name: Add additional information to XML report
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
run: |
filename=$(ls | grep -E '^[0-9]{12}_linodego_test_report\.xml$')
python scripts/add_to_xml_test_report.py \
Expand All @@ -85,6 +87,7 @@ jobs:
--xmlfile "${filename}"
- name: Upload test results to bucket
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
env:
LINODE_CLI_OBJ_ACCESS_KEY: ${{ secrets.LINODE_CLI_OBJ_ACCESS_KEY }}
LINODE_CLI_OBJ_SECRET_KEY: ${{ secrets.LINODE_CLI_OBJ_SECRET_KEY }}
Expand Down