Create format.yml
This commit is contained in:
parent
216b478556
commit
1a06bf678e
21
.github/workflows/format.yml
vendored
Normal file
21
.github/workflows/format.yml
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
name: Format
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches: [main]
|
||||||
|
jobs:
|
||||||
|
format:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
ref: ${{ github.head_ref }}
|
||||||
|
- uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: "18.x"
|
||||||
|
- run: npm ci
|
||||||
|
- run: npm run format
|
||||||
|
- name: Commit changes
|
||||||
|
uses: stefanzweifel/git-auto-commit-action@v4.1.2
|
||||||
|
with:
|
||||||
|
commit_message: Apply formatting changes
|
||||||
|
branch: ${{ github.head_ref }}
|
Loading…
x
Reference in New Issue
Block a user