This PR aims to improve the generation script by providing a more stable command to look up changed file after generating the typescript files.
In the last scheduled generation the script was unable to recognize that their were more then one changed files and did not created a PR for the generated files.
Testing:
Pull this repo
Make a change in src/connectors/mod.ts
run the following sh command [[ $(git ls-files --other --modified --exclude-standard) == "src/connectors/mod.ts" ]] && { echo "No real changes. Do not commit."; exit 1; } -- the output should "No real changes. Do not commit."
Make a change in another file in the repo
run the following sh command [[ $(git ls-files --other --modified --exclude-standard) == "src/connectors/mod.ts" ]] && { echo "No real changes. Do not commit."; exit 1; } -- their should be no output
This generation GitHub action was triggered from this branch and shows that the changes work.
Requirements
[x] I've read and understood the
Contributing Guidelines
and have done my best effort to follow them.
Summary
This PR aims to improve the generation script by providing a more stable command to look up changed file after generating the typescript files.
In the last scheduled generation the script was unable to recognize that their were more then one changed files and did not created a PR for the generated files.
Testing:
src/connectors/mod.ts
sh
command[[ $(git ls-files --other --modified --exclude-standard) == "src/connectors/mod.ts" ]] && { echo "No real changes. Do not commit."; exit 1; }
-- the output should "No real changes. Do not commit."sh
command[[ $(git ls-files --other --modified --exclude-standard) == "src/connectors/mod.ts" ]] && { echo "No real changes. Do not commit."; exit 1; }
-- their should be no outputThis generation GitHub action was triggered from this branch and shows that the changes work.
Requirements