Merge branch 'develop' into imasyuko-patch-53 #879
Workflow file for this run
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: Build Font | |
on: | |
push: | |
branches-ignore: | |
- 'master' | |
- 'develop' | |
jobs: | |
build-font: | |
name: Build Font | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ github.token }} | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
cache: 'npm' | |
node-version: 20.x | |
- name: Install | |
run: | | |
npm ci | |
- name: Build assets | |
run: | | |
npm run build --workspaces | |
- name: Compare artifacts | |
run: | | |
HAS_CHANGES=0 | |
HAS_NEW=0 | |
git diff --exit-code --quiet -- packages/ -- ":(exclude)packages/*/dist/*" ":(exclude)packages/*/scss/*.ttf" || HAS_CHANGES=1 | |
[[ $(git ls-files --others --exclude-standard packages/) ]] && HAS_NEW=1 | |
echo "HAS_CHANGES=$HAS_CHANGES" >> $GITHUB_ENV | |
echo "HAS_NEW=$HAS_NEW" >> $GITHUB_ENV | |
- name: Setup git user | |
run: | | |
git config user.name "kendo-bot" | |
git config user.email "[email protected]" | |
- name: Push changes to GitHub | |
if: ${{ env.HAS_CHANGES == 1 || env.HAS_NEW == 1 }} | |
env: | |
GH_TOKEN: ${{ github.token }} | |
run: | | |
echo "Updating font." | |
git add packages/ | |
git commit -m "feat: generate icons metadata" | |
git push |