Skip to content

Commit 835a0b3

Browse files
authored
fix: openapi schema pipeline flakiness (#175)
1 parent bbdb18b commit 835a0b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/php.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,5 @@ jobs:
9393
composer init:admin
9494
composer openapi:generate
9595
git update-index --refresh || printf ''
96-
git diff-index "${{ github.sha }}" --quiet -- src/Resources/app/administration/src/types/openapi.d.ts || (echo "Please run 'composer openapi:generate' to update openapi.d.ts" && exit 1)
97-
git diff-index "${{ github.sha }}" --quiet -- src/Resources/Schema || (echo "Please run 'composer openapi:generate' to update Resources/Schema files" && exit 1)
96+
git diff "${{ github.sha }}" --exit-code -- src/Resources/app/administration/src/types/openapi.d.ts || (echo "Please run 'composer openapi:generate' to update openapi.d.ts" && exit 1)
97+
git diff "${{ github.sha }}" --exit-code -- src/Resources/Schema || (echo "Please run 'composer openapi:generate' to update Resources/Schema files" && exit 1)

0 commit comments

Comments
 (0)