Skip to content

Use github.ref_name instead of hardcoded branch name #178

Use github.ref_name instead of hardcoded branch name

Use github.ref_name instead of hardcoded branch name #178

Workflow file for this run

name: rustfmt
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
rustfmt:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- name: 📦 Install nightly toolchain
run: |
rustup toolchain install nightly
rustup component add rustfmt --toolchain nightly
- name: 🔎 Format using rustfmt
working-directory: tools/slicec-cs
run: cargo +nightly fmt --check