Skip to content

Commit

Permalink
Update generate_api.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
torogi94 committed Sep 5, 2023
1 parent 403e18c commit 0d35014
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/generate_api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
generate-api:
runs-on: ubuntu-latest
env:
LIB_NAME: ${{ secrets.LIB_NAME }}
LIB_NAME: datamodel
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -23,12 +23,12 @@ jobs:
env:
URL: ${{github.repositoryUrl}}
COMMIT: ${{github.sha}}
run: sdrdm generate --path ./specifications/ --out ./nmrpy/ --name "datamodel" --url "$URL" --commit "$COMMIT"
run: sdrdm generate --path ./specifications/ --out ./nmrpy/ --name "LIB_NAME" --url "$URL" --commit "$COMMIT"

- name: Push source code
run: |
if [[ `git status --porcelain` ]]; then
git add "datamodel"
git add "$LIB_NAME"
git config --global user.name 'sdRDM Bot'
git config --global user.email '[email protected]'
git commit -am "API update"
Expand Down

0 comments on commit 0d35014

Please sign in to comment.