From e2bec193bd6f0ee0cd7256bc45e5c4b06dfdc445 Mon Sep 17 00:00:00 2001 From: tligui_y Date: Tue, 8 Jul 2025 16:40:45 +0200 Subject: [PATCH] Update .gitea/workflows/test.yml --- .gitea/workflows/test.yml | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index c4ce622b..c533e206 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -68,29 +68,18 @@ jobs: env: CI_TOKEN: ${{ secrets.CI_TOKEN }} - - name: Rename index.html with timestamp + - name: Prepare page report run: | ts=$(date +%s) - echo "Report timestamp: $ts" mv ci-reports/allure/index.html ci-reports/allure/report_${ts}.html - echo $ts > ci-reports/allure/latest.txt + echo "" > ci-reports/allure/index.html - - name: Create redirect index.html + - name: Link to report run: | - ts=$(cat ci-reports/allure/latest.txt) - cat < ci-reports/allure/index.html - - - - - - Redirecting to latest report - - -

Redirecting to latest report...

- - - EOF + base_url="https://yaspsi.github.io/pytest-report-render" + echo "=== Report URL for website ===" + echo "🔗 ${base_url}/ci-reports/allure/report_${ts}.html" + echo "=============================="