Skip to content

Commit da281b8

Browse files
authored
Only run unit test upload on main branch (#1030)
1 parent 0efe4ab commit da281b8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ jobs:
114114
verbose: true
115115

116116
- name: Upload jUnit test results (APDE CI)
117-
if: github.repository == 'ansible/eda-server'
117+
if: github.repository == 'ansible/eda-server' && github.ref == 'refs/heads/main'
118118
run: >-
119119
poetry run http --check-status --ignore-stdin
120120
--auth "${{ vars.PDE_ORG_RESULTS_AGGREGATOR_UPLOAD_USER }}:${{ secrets.PDE_ORG_RESULTS_UPLOAD_PASSWORD }}"

.github/workflows/e2e-dispatch.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ jobs:
9797
9898
- name: Upload jUnit test results (APDE CI)
9999
working-directory: ${{ env.EDA_QA_PATH }}
100+
if: github.ref == 'refs/heads/main'
100101
run: >-
101102
http --check-status --ignore-stdin
102103
--auth "${{ vars.PDE_ORG_RESULTS_AGGREGATOR_UPLOAD_USER }}:${{ secrets.PDE_ORG_RESULTS_UPLOAD_PASSWORD }}"
@@ -179,6 +180,7 @@ jobs:
179180
180181
- name: Upload jUnit test results (APDE CI)
181182
working-directory: ${{ env.EDA_QA_PATH }}
183+
if: github.ref == 'refs/heads/main'
182184
run: >-
183185
http --check-status --ignore-stdin
184186
--auth "${{ vars.PDE_ORG_RESULTS_AGGREGATOR_UPLOAD_USER }}:${{ secrets.PDE_ORG_RESULTS_UPLOAD_PASSWORD }}"

0 commit comments

Comments
 (0)