Skip to content

Commit

Permalink
First format, then git status
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-helmich committed Dec 20, 2023
1 parent b50fc3b commit 1b16680
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ jobs:
- name: Generate client
run: php ./cmd/generate.php generate https://api.mittwald.de/openapi ./.work -v

- name: Run code formatting on generated client
working-directory: .work
run: |
composer install --prefer-dist --no-progress --no-suggest
composer run format
composer run check
- run: git status
working-directory: .work

Expand All @@ -42,10 +49,6 @@ jobs:
run: |
set -ex
composer install --prefer-dist --no-progress --no-suggest
vendor/bin/psalm
composer run format
if [[ $(git status --porcelain | wc -l) -eq 0 ]]; then
echo "No changes detected, skipping commit."
exit 0
Expand Down

0 comments on commit 1b16680

Please sign in to comment.