X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=.github%2Fworkflows%2Fmetrics.yaml;h=3fe2fc917a39a294c224c054821aea3a7cafd3d2;hb=53ec791dc6b22e581f9e5aabeda5edfc806564cb;hp=d189ce9c901d2fe958bcc5b574590db8c45f2945;hpb=ba8d6d1e4ea2590b31470171efc175b0301c5e1c;p=rust.git diff --git a/.github/workflows/metrics.yaml b/.github/workflows/metrics.yaml index d189ce9c901..3fe2fc917a3 100644 --- a/.github/workflows/metrics.yaml +++ b/.github/workflows/metrics.yaml @@ -12,19 +12,17 @@ env: jobs: metrics: + if: github.repository == 'rust-lang/rust-analyzer' runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - profile: minimal - override: true - components: rust-src + run: | + rustup update --no-self-update stable + rustup component add rustfmt rust-src - name: Collect metrics run: cargo xtask metrics