Skip to content

Commit

Permalink
chore(ci): add format action
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re committed Sep 25, 2024
1 parent 60a9940 commit 6541d54
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Format

on:
push:
branches:
- main

jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- uses: pnpm/action-setup@v3
- uses: actions/setup-node@v4
with:
node-version: 18
cache: "pnpm"
- run: pnpm install
- run: pnpm run format
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "[ci] format"
branch: ${{ github.head_ref }}
commit_author: ${{ github.event.commits[0].author.name }} <${{ github.actor }}@users.noreply.github.com>

0 comments on commit 6541d54

Please sign in to comment.