diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 31000a2744..6714f6a632 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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 prettier@3.0.2 -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