Bump the dependencies group across 1 directory with 19 updates #594
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 | |
on: | |
push: | |
paths: | |
- '**.py' | |
- '**.ts' | |
- .github/workflows/formatter.yml | |
- package.json | |
- tsconfig.json | |
- pyproject.toml | |
- .prettierrc | |
permissions: | |
contents: write | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
cache: yarn | |
- name: Sort imports | |
uses: isort/isort-action@master | |
with: | |
configuration: --atomic | |
- name: Install node dependencies | |
run: yarn --frozen-lockfile | |
- name: Fix lints | |
run: yarn lint --fix | |
- name: Format with Prettier | |
run: yarn prettier --write src | |
- name: Set Git config | |
run: | | |
git config user.email "github-actions[bot]@users.noreply.github.com" | |
git config user.name "github-actions[bot]" | |
- name: Commit changes | |
run: | | |
git add . | |
git commit -m "style: format scripts" | true | |
git push |