File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -238,11 +238,13 @@ def set_docs_to_build(build_all):
238
238
doc_pattern = re .compile (
239
239
r"^(?:.github/workflows/|docs|extmod/ulab|(?:(?:ports/\w+/bindings|shared-bindings)\S+\.c|conf\.py|tools/extract_pyi\.py|requirements-doc\.txt)$)|(?:-stubs|\.(?:md|MD|rst|RST))$"
240
240
)
241
+ github_workspace = os .environ .get ("GITHUB_WORKSPACE" ) or ""
242
+ github_workspace = github_workspace and github_workspace + "/"
241
243
for p in changed_files :
242
244
if (
243
245
p .endswith (".c" )
244
246
and not subprocess .run (
245
- f"git diff -U0 { os . environ . get ( ' BASE_SHA' ) } ...{ os . environ . get ( ' HEAD_SHA' ) } { p } | grep -o -m 1 '^[+-]\/\/|'" ,
247
+ f"git diff -U0 $ BASE_SHA...$ HEAD_SHA { github_workspace + p } | grep -o -m 1 '^[+-]\/\/|'" ,
246
248
capture_output = True ,
247
249
shell = True ,
248
250
).stdout
You can’t perform that action at this time.
0 commit comments