diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e542c82d..a14fb83a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up Rust - uses: dtolnay/rust-toolchain@stable + uses: actions-rust-lang/setup-rust-toolchain@v1 with: toolchain: ${{ matrix.rust }} - name: Build diff --git a/.github/workflows/rustfmt.yml b/.github/workflows/rustfmt.yml index bbf7720a..1b19b7cc 100644 --- a/.github/workflows/rustfmt.yml +++ b/.github/workflows/rustfmt.yml @@ -1,16 +1,20 @@ -on: pull_request - name: Rustfmt +on: + push: + branches: + - main + pull_request: + branches: + - '*' + jobs: format: runs-on: ubuntu-latest - permissions: - pull-requests: write steps: - uses: actions/checkout@v4 - name: Setup Rustfmt - uses: dtolnay/rust-toolchain@stable + uses: actions-rust-lang/setup-rust-toolchain@v1 with: components: rustfmt - name: Rustfmt Check