Skip to content

Commit

Permalink
format on push/pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
awwpotato authored Nov 4, 2024
1 parent d299b54 commit b6fb7df
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Format

on:
push:
pull_request:

jobs:
format:
runs-on: ubuntu-latest
name: Format Files
steps:
- uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v2
- name: Prettier
run: bun run format
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: stefanzweifel/git-auto-commit-action@v4
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
with:
commit_message: "style: format files"

0 comments on commit b6fb7df

Please sign in to comment.