Merge pull request #7355 from hayaksi1/fix/822-record-screenshots-no-change

Do not fail the screenshot recording job when there is nothing to commit
This commit is contained in:
Benoit Marty
2026-08-12 13:51:20 +02:00
committed by GitHub
@@ -78,6 +78,10 @@ else
git config --local user.name "${INPUT_AUTHOR_EMAIL}"
fi
git add -A
if git diff --cached --quiet; then
echo "Screenshots are already up to date, nothing to commit."
exit 0
fi
git commit -m "Update screenshots"
GITHUB_REPO="https://$GITHUB_ACTOR:$TOKEN@github.com/$REPO.git"