Generate font tags from tagging spreadsheet #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: Generate font tags from tagging spreadsheet | |
on: | |
# For Branch-Protection check. Only the default branch is supported. See | |
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection | |
branch_protection_rule: | |
# To guarantee Maintained check is occasionally updated. See | |
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained | |
schedule: | |
# midnight everyday | |
#- cron: '0 0 * * *' | |
# every 5 mins for testing | |
- cron: '*/5 * * * *' | |
jobs: | |
pr: | |
name: pull request | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v4.4.0 | |
with: | |
python-version: '3.10' | |
- name: Install packages | |
run: | | |
pip install gftools[qa] | |
shell: bash | |
- name: run cmds | |
run: | | |
git config --global user.email "m.foley.88@gmail.com" | |
git config --global user.name "Marc Foley" | |
gftools font-tags lint . | |
git checkout -B font-tags | |
gftools font-tags write . | |
git add tags/ | |
git commit -m "update family tags" | |
gh pr create --title 'Update font tags' --body 'From GHA' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |