Skip to content

Commit c844ad8

Browse files
authored
Merge pull request #78 from anderswr/codex/extract-sleep-questionnaire-content-to-excel
Remove committed XLSX, add generator script and GitHub Action to produce extract artifact
2 parents f510705 + 200b2ea commit c844ad8

4 files changed

Lines changed: 603 additions & 0 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Generate sleep questionnaire extract
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build-extract:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout repo
11+
uses: actions/checkout@v4
12+
13+
- name: Set up Python
14+
uses: actions/setup-python@v5
15+
with:
16+
python-version: "3.11"
17+
18+
- name: Generate extract workbook
19+
run: python tools/generate_sleep_extract.py
20+
21+
- name: Upload extract artifact
22+
uses: actions/upload-artifact@v4
23+
with:
24+
name: sleep-questionnaire-scoring-extract
25+
path: |
26+
sleep_questionnaire_scoring_extract.xlsx
27+
README_for_reviewers.md

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sleep_questionnaire_scoring_extract.xlsx

README_for_reviewers.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Sleep questionnaire scoring extract
2+
3+
This extract was generated from the repository source files listed in the Metadata sheet.
4+
5+
Notes:
6+
- The Excel file was generated using a minimal XLSX writer implemented with the Python standard library (no external XLSX packages were available in the environment).
7+
- All questionnaire and report text values in the workbook come from the English locale file (public/locales/en.json).
8+
- I18n_All_Translations contains every key/value pair across all locale JSON files.
9+
- I18n_Translation_Sources lists locale file locations (file path + line number) for each translation key.

0 commit comments

Comments
 (0)