chore(deps): update dependency fonttools to v4.56.0 #1916
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: 💅 Format Codebase | |
on: | |
push: | |
workflow_dispatch: | |
permissions: write-all | |
jobs: | |
format-codebase: | |
runs-on: ubuntu-latest | |
name: 💅 Format Codebase | |
steps: | |
- name: 📀 Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: 💄 Run Prettier | |
uses: creyD/prettier_action@v4.3 | |
with: | |
prettier_options: --write **/*.{json,md} | |
commit_message: "chore(codebase): format with prettier" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: 🐍 Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
cache: "pip" | |
cache-dependency-path: requirements.txt | |
- name: 🖤 Format code with black | |
run: | | |
git config --global user.email "hello@harryvasanth.com" | |
git config --global user.name "HarryVasanth" | |
pip install black | |
black . --verbose | |
git add . | |
- name: 📎 Push changes | |
run: | | |
git diff-index --quiet HEAD || git commit -m "chore(codebase): format with black" && git push || echo "No changes" && exit |