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 -