This commit is contained in:
parent
835ae7cad1
commit
968661b3ce
@ -91,10 +91,26 @@ jobs:
|
|||||||
python -c "import pyWebLayout; print('Package imported successfully')"
|
python -c "import pyWebLayout; print('Package imported successfully')"
|
||||||
|
|
||||||
- name: Commit coverage badges
|
- name: Commit coverage badges
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/master'
|
||||||
run: |
|
run: |
|
||||||
|
echo "Current directory contents:"
|
||||||
|
ls -la *.svg || echo "No SVG files found"
|
||||||
|
echo "Checking if coverage files exist:"
|
||||||
|
ls -la coverage* || echo "No coverage files found"
|
||||||
|
|
||||||
git config --local user.email "action@gitea.local"
|
git config --local user.email "action@gitea.local"
|
||||||
git config --local user.name "Gitea Action"
|
git config --local user.name "Gitea Action"
|
||||||
git add coverage*.svg
|
|
||||||
git diff --staged --quiet || git commit -m "Update coverage badges [skip ci]"
|
if ls coverage*.svg 1> /dev/null 2>&1; then
|
||||||
git push
|
echo "Adding coverage badge files..."
|
||||||
|
git add coverage*.svg
|
||||||
|
if git diff --staged --quiet; then
|
||||||
|
echo "No changes to commit"
|
||||||
|
else
|
||||||
|
echo "Committing badge updates..."
|
||||||
|
git commit -m "Update coverage badges [skip ci]"
|
||||||
|
git push
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "No coverage SVG files found to commit"
|
||||||
|
fi
|
||||||
Loading…
x
Reference in New Issue
Block a user