mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/check_readmes_pre_commit_idf_path' into 'master'
ci: allow running check-readmes pre-commit hook without IDF_PATH set See merge request espressif/esp-idf!19055
This commit is contained in:
commit
eeb2808a32
@ -406,6 +406,9 @@ if __name__ == '__main__':
|
||||
|
||||
arg = parser.parse_args()
|
||||
|
||||
# Since this script is executed from the pre-commit hook environment, make sure IDF_PATH is set
|
||||
os.environ['IDF_PATH'] = os.path.realpath(os.path.join(os.path.dirname(__file__), '..', '..'))
|
||||
|
||||
if arg.action == 'sort-yaml':
|
||||
sort_yaml(arg.files)
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user