From e82b9b6085e006c5c2d6dc68fbe60a3bb67a27db Mon Sep 17 00:00:00 2001 From: tligui_y Date: Wed, 16 Jul 2025 20:45:09 +0200 Subject: [PATCH] Update .gitea/workflows/test.yml --- .gitea/workflows/test.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 1d4d5e9e..d966fc3a 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -1,6 +1,6 @@ name: Run Pytest with HTML and XML Test Reports -on: +on: push: branches: [testing_json] pull_request: @@ -159,19 +159,18 @@ jobs: echo "📚 Cloning gitea-pages branch..." git clone --branch gitea-pages https://ci-token:${CI_TOKEN}@gitea.psi.ch/tligui_y/slic.git gitea-pages - echo "🗑 Cleaning old allure report..." - rm -rf gitea-pages/allure || true + echo "🗑 Cleaning old report files..." + rm -rf gitea-pages/* || true - echo "📂 Copying new allure report..." - cp -r ci-reports/allure gitea-pages/ + echo "📂 Copying new allure report files to root of gitea-pages..." + cp -r ci-reports/allure/* gitea-pages/ cd gitea-pages git config user.name "ci-bot" git config user.email "ci-bot@example.com" - git add allure + git add . git commit -m "Update Allure report for run $GITHUB_RUN_NUMBER" || echo "⚠️ Nothing to commit" echo "🚀 Pushing to gitea-pages branch..." git push origin gitea-pages -