test: do not allow empty Layout= lines #570
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Check for sysinfo in data files" | |
on: [ pull_request ] | |
permissions: | |
contents: read | |
jobs: | |
checksysinfo: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: tj-actions/changed-files@v41 | |
id: added-files | |
with: | |
path: data | |
- name: Check for sysinfo in all added files | |
run: | | |
for file in ${{ steps.added-files.outputs.added_files }}; do | |
if [[ "$file" == *.tablet ]]; then | |
grep -q "sysinfo" data/$file || (echo "Missing reference to sysinfo.DEADBEEF.gz in $file" && exit 1) | |
fi | |
done |