Update action.yml

This commit is contained in:
2025-08-25 18:22:23 +02:00
parent 08338cfdb3
commit ccf26e572d
+16 -20
View File
@@ -70,10 +70,22 @@ inputs:
runs:
using: "composite"
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Silent Checkout
run: |
LOG=checkout.log
echo "📥 Starting custom checkout..." > $LOG
# Init repo
git init . >> $LOG 2>&1
git remote add origin ${{ github.server_url }}/${{ github.repository }} >> $LOG 2>&1
# Fetch uniquement le commit courant
git fetch --depth=1 origin ${{ github.sha }} >> $LOG 2>&1
# Checkout le commit
git checkout FETCH_HEAD >> $LOG 2>&1
echo "✅ Checkout complete" >> $LOG
- name: Install optional apt packages
if: inputs.apt_packages != ''
@@ -414,22 +426,6 @@ runs:
echo "✅ Custom shell executed" >> $LOG_FILE
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