Skip to content

Update checklang.yml #53

Update checklang.yml

Update checklang.yml #53

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 * * 2'
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: Check for changes in gflanguages
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd ..
pwd
cp -r glyphsets upstream
cd upstream
pip install .
pip install -U git+https://github.com/googlefonts/lang
pip freeze
sh build.sh
rm -f __pycache__
rm -f _version.py
rm -f *.egg-info
rm -rf build
rm -rf .git
rm -f _*
rm -f glyphsets.egg-info
cd ..
pwd
rm -f glyphsets.egg-info
cd glyphsets
pwd
rm -f Lib/glyphsets/__pycache__
rm -f Lib/glyphsets/_version.py
rm -f *.egg-info
rm -rf build
rm -rf .git
rm -f _*
rm -f Lib/glyphsets.egg-info
diff -r -x BODY . ../upstream || echo "Diff return value: $?"; 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 . ../upstream`" >> BODY; echo -e '```' >> BODY; echo "BODY:"; cat BODY;
# gh issue create --title "Changes in gflanguages data" --body-file BODY --label "dependencies"