Skip to content

Commit

Permalink
finalize workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixTJDietrich committed Jul 31, 2024
1 parent 1754345 commit 303d03a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/generate-api-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,11 @@ jobs:
- name: Commit and push changes
run: |
git add webapp/src/app/core/modules/openapi
git diff-index --quiet HEAD || git commit -m "chore: update API client"
git push origin HEAD:${{ github.event.pull_request.head.ref }}
if git diff-index --quiet HEAD; then
echo "No changes to commit"
else
git commit -m "chore: update API client"
git push origin HEAD:${{ github.event.pull_request.head.ref }}
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 303d03a

Please sign in to comment.