-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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" | ||
|