Skip to content

Commit 6599742

Browse files
committed
Group reports and report history by environment
1 parent c30b8e5 commit 6599742

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/run-e2e-automation-tests.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ on:
6969
- proxy_smoke
7070

7171
env:
72+
ALLURE_REPORT_ENVIRONMENT: ${{ startsWith(inputs.sub_environment, 'pr-') && inputs.sub_environment || inputs.apigee_environment }}
7273
APIGEE_AUTH_ENV: ${{ inputs.apigee_environment == 'int' && inputs.apigee_environment || 'internal-dev' }}
7374
APIGEE_ENVIRONMENT: ${{ inputs.apigee_environment }}
7475
ENVIRONMENT: ${{ inputs.environment }}
@@ -259,16 +260,16 @@ jobs:
259260
with:
260261
allure_results: tests/e2e_automation/output/allure-results
261262
gh_pages: gh-pages
262-
allure_report: allure-report
263-
allure_history: allure-history
263+
allure_report: allure-report/${{env.ALLURE_REPORT_ENVIRONMENT}}
264+
allure_history: allure-history/${{env.ALLURE_REPORT_ENVIRONMENT}}
264265

265266
- name: Publish Allure report to GitHub Pages
266267
if: always()
267268
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847
268269
with:
269270
github_token: ${{ secrets.GITHUB_TOKEN }}
270271
publish_branch: gh-pages
271-
publish_dir: allure-history
272+
publish_dir: allure-history/${{env.ALLURE_REPORT_ENVIRONMENT}}
272273

273274
- name: Add link to Allure report
274275
if: always()

0 commit comments

Comments
 (0)