Update action.yml
This commit is contained in:
+17
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user