Skip to content

Commit

Permalink
add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixTJDietrich committed Jul 31, 2024
1 parent 3b88ced commit 17771f6
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/generate-api-client.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Generate API Client

on:
push:
paths:
- 'server/application-server/**'
pull_request:
paths:
- 'server/application-server/**'
workflow_dispatch:

jobs:
generate-api-client:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22'

- name: Install dependencies
run: npm install

- name: Generate API client
run: npm run generate:api

- name: Commit and push changes
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add .
git diff-index --quiet HEAD || git commit -m "chore: update API client"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 17771f6

Please sign in to comment.