Skip to content

Commit

Permalink
maybe now
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixTJDietrich committed Jul 31, 2024
1 parent 303d03a commit e823356
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/generate-api-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@ on:

jobs:
generate-api-client:
name: Update API client if necessary
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 0

- name: Set up Node.js
uses: actions/setup-node@v4
Expand Down Expand Up @@ -43,6 +47,7 @@ jobs:
git add webapp/src/app/core/modules/openapi
if git diff-index --quiet HEAD; then
echo "No changes to commit"
exit 0
else
git commit -m "chore: update API client"
git push origin HEAD:${{ github.event.pull_request.head.ref }}
Expand Down

0 comments on commit e823356

Please sign in to comment.