mirror of
https://github.com/humhub/humhub.git
synced 2025-01-16 13:51:42 +01:00
Skip creating of branch and PR if no changes from PHP CS Fixer (#7348)
This commit is contained in:
parent
89b6068fe1
commit
7663a81c16
4
.github/workflows/php-cs-fixer.yml
vendored
4
.github/workflows/php-cs-fixer.yml
vendored
@ -45,6 +45,10 @@ jobs:
|
||||
run: |
|
||||
git config user.name "GitHub Action"
|
||||
git config user.email "action@github.com"
|
||||
if git diff --quiet; then
|
||||
echo "No changes detected by PHP-CS-Fixer. Skipping commit and PR creation."
|
||||
exit 0
|
||||
fi
|
||||
PHP_FIXER_DATETIME=$(date +%Y-%m-%d-%H%M%S)
|
||||
git checkout -b "php-fixer/$PHP_FIXER_DATETIME"
|
||||
git add -u
|
||||
|
Loading…
x
Reference in New Issue
Block a user