Skip to content

Commit ca7328f

Browse files
Add taskList.json Check for CAP
1 parent 950c492 commit ca7328f

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/verify-zip.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ jobs:
125125
fi
126126
done < changed_zips.txt
127127
128-
- name: Step 3 - Unzip and verify top level folder structure
128+
- name: Step 3 - Unzip and verify CAP folder structure
129129
shell: bash
130130
run: |
131131
set -euo pipefail
@@ -164,6 +164,14 @@ jobs:
164164
exit 1
165165
fi
166166
done
167+
168+
# Ensure app-configuration/taskList.json exists in the ZIP payload
169+
required_task_list="$root/app-configuration/taskList.json"
170+
if [[ ! -f "$required_task_list" ]]; then
171+
echo "::error file=$zip_path::Missing required file app-configuration/taskList.json"
172+
rm -rf "$tmpdir"
173+
exit 1
174+
fi
167175
rm -rf "$tmpdir"
168176
done < changed_zips.txt
169177

0 commit comments

Comments
 (0)