-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #74 from djarecka/fix_yaml_gen
fixing generate_yaml_model.yaml
- Loading branch information
Showing
1 changed file
with
8 additions
and
4 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 |
---|---|---|
|
@@ -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" | ||
|