Also force-push to gh-pages on PR cleanup

This commit is contained in:
Vasilii Rogin
2025-06-02 20:52:46 +03:00
parent 05b692f403
commit 224f1088f2
+6 -2
View File
@@ -29,5 +29,9 @@ jobs:
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git commit -am "🚮 Remove preview for closed PR #${{ github.event.pull_request.number }}"
git push
if git diff --cached --quiet; then
echo "No changes to commit"
else
git commit --amend -m "🚮 Remove preview for closed PR #${{ github.event.pull_request.number }}"
git push --force
fi