diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 7f4e1db7..ef6d4ac6 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -12,7 +12,18 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 - + + - name: Clear wiki branch + run: | + git clone https://ci-token:${{ secrets.CI_TOKEN }}@gitea.psi.ch/tligui_y/slic.wiki.git wiki-clear + cd wiki-clear + rm -f run-*.md + git config user.name "ci-bot" + git config user.email "ci-bot@example.com" + git add -A + git commit -m "🧹 Clear wiki content" || echo "Nothing to commit" + git push origin HEAD:main --force + - name: Show all environment variables run: env