Skip to content

Update checklang.yml #32

Update checklang.yml

Update checklang.yml #32

Workflow file for this run

name: Check for changes in gflanguages
on:
push:
paths:
- '**.yml'
# schedule:
# # * is a special character in YAML so you have to quote this string
# - cron: '0 0 * * *'
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 glyphsets2
cd glyphsets2
pip install .
pip install -U git+https://github.com/yanone/lang
pip freeze
sh build.sh
cd ..
cd glyphsets
diff -r data/results ../glyphsets2/data/results && diff GLYPHSETS.md ../glyphsets2/GLYPHSETS.md || 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 data/results ../glyphsets2/data/results && diff GLYPHSETS.md ../glyphsets2/GLYPHSETS.md`" >> BODY; echo -e '```' >> BODY; cat BODY; gh issue create --title "Changes in gflanguages data" --body-file BODY --label "dependencies"