Skip to content

Commit d7624b1

Browse files
committed
api_refs.yaml: Check if there is something to commit
1 parent e207e55 commit d7624b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/api_refs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ jobs:
7575
else
7676
git add tools/php_api_ref/.phpdoc/template/package-edition-map.twig
7777
fi
78-
git commit -m "PHP API Ref HTML"
78+
git diff-index --quiet --cached HEAD || git commit -m "PHP API Ref HTML"
7979
git add docs/api/rest_api/rest_api_reference/rest_api_reference.html
80-
git commit -m "REST API Ref HTML"
80+
git diff-index --quiet --cached HEAD || git commit -m "REST API Ref HTML"
8181
8282
- name: Create Pull Request
8383
uses: peter-evans/create-pull-request@v7

0 commit comments

Comments
 (0)