Skip to content

Commit

Permalink
Merge pull request #11 from M-casado/EEH-2525_fix
Browse files Browse the repository at this point in the history
EEH-2525 - Amend ``git rm``
  • Loading branch information
M-casado authored Apr 14, 2023
2 parents 6fbf45e + 4b6b35d commit 3cd5bce
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/request_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

request = request_validation(
data_filepath=file,
curl_URL=curl_URL
validator_url=curl_URL
)

val_error = get_errors_response(
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/utils/json_manipulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from typing import Union
from .string_manipulation import add_newlines, \
is_semantic_version, \
is_higher_version
is_higher_version, \
replace_after_string_in_url

# - #
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/utils/json_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# Helper functions
# -#
def request_validation(
data_filepath: Union[str, os.DirEntry[str]], validator_url: str, headers: dict = None
data_filepath: str, validator_url: str, headers: dict = None
) -> requests.models.Response:
"""
Function that, given a data_filepath (e.g. "path/to/file.json"), a validation URL (e.g. http://localhost:3020/validate)
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/markdown_creation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ jobs:
# We add new additions
git add $markdown_dir/*
# And add to stage the deleted files as well
git rm $(git ls-files --deleted "$markdown_dir")
deleted_files=$(git ls-files --deleted "$markdown_dir")
if [ -n "$deleted_files" ]; then
git rm $deleted_files
fi
git commit -m "JSON Schemas to Markdown - $today"
git push origin main

0 comments on commit 3cd5bce

Please sign in to comment.