Skip to content

Update checklang.yml #36

Update checklang.yml

Update checklang.yml #36

Workflow file for this run

name: Check for changes in gflanguages
on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '0 23 * * 3'
push:
paths:
- '**.yml'
jobs:
diff:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Run Script
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd ..
cp -r glyphsets upstream
cd upstream
pip install .
pip install -U git+https://github.com/yanone/lang
pip freeze
sh build.sh
cd ..
cd glyphsets
diff -r . ../upstream || echo -e "Recent data changes in **gflanguages** lead to the following glyphset definition changes:\n\n" > BODY; echo -e '```diff' >> BODY; echo -e "`diff -r -x BODY -x .git . ../upstream`" >> BODY; echo -e '```' >> BODY; cat BODY; gh issue create --title "Changes in gflanguages data" --body-file BODY --label "dependencies"