Fix source check: create the local raw folder; allow the workflow to open issues
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UCzTd31GphpMXDhQqWrCMQ
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
c3d067b88c
commit
78baf9cec4
@@ -6,6 +6,7 @@ on:
|
|||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
|
issues: write
|
||||||
jobs:
|
jobs:
|
||||||
check:
|
check:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
@@ -76,7 +76,8 @@ def update_form(src, report):
|
|||||||
subprocess.run([sys.executable, P("research", "python", "export_raw.py"), src, out], check=True, cwd=HERE)
|
subprocess.run([sys.executable, P("research", "python", "export_raw.py"), src, out], check=True, cwd=HERE)
|
||||||
subprocess.run([sys.executable, P("research", "python", "clean.py"), out, P("data", "derived", "runs_clean.csv")], check=True, cwd=HERE)
|
subprocess.run([sys.executable, P("research", "python", "clean.py"), out, P("data", "derived", "runs_clean.csv")], check=True, cwd=HERE)
|
||||||
raw_copy = P("data", "raw", "form", "Threshing_Routes_Responses.xlsx")
|
raw_copy = P("data", "raw", "form", "Threshing_Routes_Responses.xlsx")
|
||||||
if os.path.abspath(src) != raw_copy:
|
if os.path.abspath(src) != raw_copy: # local copy only; data/raw/form/*.xlsx is git-ignored
|
||||||
|
os.makedirs(os.path.dirname(raw_copy), exist_ok=True)
|
||||||
shutil.copyfile(src, raw_copy)
|
shutil.copyfile(src, raw_copy)
|
||||||
new_q = [h for h in headers if h not in current["headers"]]
|
new_q = [h for h in headers if h not in current["headers"]]
|
||||||
gone_q = [h for h in current["headers"] if h not in headers]
|
gone_q = [h for h in current["headers"] if h not in headers]
|
||||||
|
|||||||
Reference in New Issue
Block a user