Skip to content

Commit

Permalink
Update IdentityAssigner
Browse files Browse the repository at this point in the history
  • Loading branch information
torogi94 committed Nov 20, 2023
1 parent bad0d70 commit e9415b8
Show file tree
Hide file tree
Showing 9 changed files with 177 additions and 264 deletions.
34 changes: 5 additions & 29 deletions .github/workflows/generate_api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,10 @@ on: push
jobs:
generate-api:
runs-on: ubuntu-latest
env:
LIB_NAME: ${{secrets.LIB_NAME}}
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2
- name: Generate sdRDM library
uses: JR-1991/generate-sdrdm-api@main
with:
python-version: 3.9

- name: Install sdRDM
run: python3 -m pip install git+https://github.com/JR-1991/software-driven-rdm.git@linking-refactor

- name: Generate API
env:
URL: ${{github.repositoryUrl}}
COMMIT: ${{github.sha}}
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 "$LIB_NAME"
git config --global user.name 'sdRDM Bot'
git config --global user.email '[email protected]'
git commit -am "API update"
git push
else
echo "Nothing changed!"
fi
library_name: "datamodel"
output_path: "./nmrpy/"
schema: "true"
Loading

0 comments on commit e9415b8

Please sign in to comment.