bombsquad-plugin-manager/.github/workflows/MetaData.yml
2022-08-04 22:53:13 +05:30

25 lines
690 B
YAML

name: MetaDataCheck
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Check MetaData
run: |
echo "Analyzing All Py Files"
for pyfile in $(git ls-files '*.py'); do
cat $pyfile | grep "# ba_meta require api 7" > /dev/null || (echo "$pyfile doesn't have the MetaData present in it." && exit 1)
done
echo "All Py Files have MetaData present in them."