Skip to content

Commit

Permalink
Add update fonts workflow (#53645)
Browse files Browse the repository at this point in the history
This adds a workflow to auto update our fonts data so we can stay up to date easier. 

Closes: #53246
Closes: #53510
  • Loading branch information
ijjk authored Aug 7, 2023
1 parent bb380e7 commit 6483903
Show file tree
Hide file tree
Showing 4 changed files with 431 additions and 32 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/update_fonts_data.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: update-font-data

on:
# Run every every day at midnight https://crontab.guru/#0_0_*_*_*/1
schedule:
- cron: '0 0 * * */1'
# Allow manual runs
workflow_dispatch:

jobs:
create-pull-request:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
# Commits made with the default `GITHUB_TOKEN` won't trigger workflows.
# See: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow
token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}

- name: Install dependencies
shell: bash
run: pnpm i

- name: Create Pull Request
shell: bash
run: node scripts/update-fonts-data-workflow.js
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@
"node-fetch": "2.6.7",
"npm-run-all": "4.1.5",
"nprogress": "0.2.0",
"octokit": "3.1.0",
"open": "9.0.0",
"outdent": "0.8.0",
"pixrem": "5.0.0",
Expand Down
Loading

0 comments on commit 6483903

Please sign in to comment.