Skip to content

docs: Add more acknowledgements and projects that use spectrum to README #17

docs: Add more acknowledgements and projects that use spectrum to README

docs: Add more acknowledgements and projects that use spectrum to README #17

Workflow file for this run

name: Format code
on:
push:
branches:
- master
jobs:
fmt:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Rust
run: |
rustup update nightly
rustup default nightly
rustup component add rustfmt
- name: Download Proto Files and Install Protoc
uses: ./.github/actions/protos
with:
cdn: ${{ secrets.PROTOS_CDN }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Generate build artifacts
run: cargo check --all
- name: Format code
run: cargo fmt --all
- name: Commit and push if needed
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
if ! git diff --quiet; then
git add .
git commit -m "style: Auto-format via cargo fmt"
git push
fi