Fix bug with double pxth brand key (#321) #58
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 files with prettier and syncpack | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
format: | |
name: Format and commit files | |
runs-on: ubuntu-latest | |
if: github.actor != 'frachtbot' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.BOT_GITHUB_TOKEN }} | |
- name: Use Node 20 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install pnpm 9.12.3 | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9.12.3 | |
- name: Install dependencies (with cache) | |
uses: covbot/pnpm-install-with-cache@v1 | |
- name: Format files | |
run: pnpm run format | |
- name: Commit changed files | |
shell: bash | |
run: | | |
if [[ `git status --porcelain` ]]; then | |
git config --global user.name "frachtbot" | |
git config --global user.email "[email protected]" | |
git commit -am "[skip ci] Syncpack and prettier format" | |
git push | |
fi |