Update checklang.yml #9
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 changes in gflanguages | |
on: | |
push: | |
paths: | |
- '**.yml' | |
jobs: | |
run-script: | |
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 .. | |
diff -r glyphsets/data/results glyphsets2/data/results || export DIFF=$(diff -r glyphsets/data/results glyphsets2/data/results); echo -e "Changes in gflanguages lead to the following glyphset definition changes:\n\n```\n$DIFF\n```\n" > BODY; cat BODY; export BODY=$(cat BODY); gh issue create --title "Changes in gflanguages data" --body "$BODY" --label "gflanguages" |