Skip to content

fix(CI): proper naming for format workflow job, woops #4

fix(CI): proper naming for format workflow job, woops

fix(CI): proper naming for format workflow job, woops #4

Workflow file for this run

name: format
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
CARGO_TERM_COLOR: always
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install rust toolchain
run: rustup toolchain install stable --profile minimal --no-self-update && rustup component add rustfmt
- name: Format code
run: cargo fmt --all --verbose
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: autoformat code"
branch: ${{ github.ref }}
- name: Push formatted files
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.CI_TOKEN }}
branch: ${{ github.ref }}