From eb1ebc19f68586e748c21615b64c6adfe035bf70 Mon Sep 17 00:00:00 2001 From: tligui_y Date: Mon, 11 Aug 2025 23:22:40 +0200 Subject: [PATCH] Update action.yml --- action.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/action.yml b/action.yml index cfbc2c4..514e0f0 100644 --- a/action.yml +++ b/action.yml @@ -242,6 +242,23 @@ runs: rm -rf ./temp-test-ci echo "Exit Code: 0" >> $LOG_FILE + - name: Commit and push reports + shell: bash + run: | + echo "📤 Committing test reports..." + git config user.name "ci-bot" + git config user.email "ci-bot@example.com" + git add markdown/ + git commit -m "CI: update test report and coverage files" || echo "⚠️ Nothing to commit" + + echo "🚀 Pushing to branch '${{ inputs.ci-branch }}'..." + git push https://ci-token:${{ inputs.ci-token }}@${{ inputs.gitea-domain }}/${{ inputs.repo-path }}.git HEAD:${{ inputs.ci-branch }} > push.log 2>&1 || { + echo "❌ Push failed" + cat push.log + exit 1 + } + echo "✅ Reports pushed" + - name: Clone Gitea Wiki shell: bash env: