Skip to content

Commit

Permalink
Add pretty-quick to rust.yml
Browse files Browse the repository at this point in the history
- experimental 
- should be reformatting json files  
- supposed to run npx prettier on changed files within the pr.
  • Loading branch information
chrisconfirm authored Aug 29, 2023
1 parent b0674f1 commit 5470f2a
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,26 @@ env:
CARGO_TERM_COLOR: always

jobs:

format:
runs-on: ubuntu-latest
name: Format new files
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Pretty-Quick
run: npx -p [email protected] -p pretty-quick pretty-quick
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"

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build
Expand Down

0 comments on commit 5470f2a

Please sign in to comment.