chore(deps): bump syn from 2.0.108 to 2.0.109 #19
Workflow file for this run
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: Auto Format | |
| on: [push, pull_request] | |
| jobs: | |
| format: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Run formatter | |
| run: cargo fmt | |
| - name: Commit changes | |
| run: | | |
| if [[ `git status --porcelain` ]]; then | |
| git config user.name "github-actions[bot]" | |
| # Make formatting commits look lie they'r authored by the official github-actions[bot] | |
| # instead of an anonymous user account. | |
| # For the id see: https://api.github.com/users/github-actions%5Bbot%5D | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git add . | |
| git commit -m "style: formattig" | |
| git push | |
| fi |