Skip to content

Commit

Permalink
Merge pull request #74 from djarecka/fix_yaml_gen
Browse files Browse the repository at this point in the history
fixing generate_yaml_model.yaml
  • Loading branch information
djarecka authored Oct 3, 2024
2 parents e8d70fd + 102b133 commit ac79e84
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/generate_yaml_model.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,14 @@ jobs:
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add linkml-schema/library_generation.yaml
git add linkml-schema/source_library_generation/gsheet_output
if ! git diff --quiet; then
git commit -m "generate new yaml file"
if ! git ls-files --error-unmatch linkml-schema/library_generation.yaml; then
git add linkml-schema/library_generation.yaml
git add linkml-schema/source_library_generation/gsheet_output
git commit -m "adding a new linkml model"
elif ! git diff --quiet; then
git add linkml-schema/library_generation.yaml
git add linkml-schema/source_library_generation/gsheet_output
git commit -m "generate new version of the linkml model"
git push
else
echo "No changes to commit"
Expand Down

0 comments on commit ac79e84

Please sign in to comment.