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 "=============================="
Redirecting to latest report...