New filter changes now (should work) in TUI. #287
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: cargo fmt | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
cargo_fmt: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: Check with cargo fmt | |
run: cargo fmt --all | |
- name: Commit files | |
run: | | |
git config --local user.name ${{ github.actor }} | |
git config user.email "github-actions[bot]@users.noreply.github.com" | |
git add . | |
git commit -m "cargo formatted: ${{ github.event.commits[0].message }}" | |
- name: Push changes # push the output folder to your repo | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.head_ref || github.ref_name }} |