diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index f193c24c7..bead766be 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -11,12 +11,12 @@ on: - "**/Cargo.toml" - "**/Cargo.lock" schedule: - # Once week at midnight UTC + # Once a week at midnight UTC - cron: "0 0 * * 0" workflow_dispatch: jobs: - sec: + audit: name: Security audit runs-on: ubuntu-latest steps: diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index c858d9e36..b107e3910 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -14,13 +14,11 @@ jobs: runs-on: ${{ matrix.os }} steps: + - name: Checkout - uses: actions/checkout@v4 - name: Install Rust - uses: dtolnay/rust-toolchain@v1 - with: - toolchain: stable - components: clippy + uses: actions-rust-lang/setup-rust-toolchain@v1 - name: Build run: make build @@ -47,7 +45,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Bump homebrew-core formula + - name: Publish to homebrew uses: mislav/bump-homebrew-formula-action@v3 if: matrix.os == 'macos-latest' env: @@ -55,7 +53,7 @@ jobs: with: formula-name: onefetch - - name: Publish executable to WinGet + - name: Publish to WinGet uses: vedantmgoyal9/winget-releaser@main if: matrix.os == 'windows-latest' with: @@ -69,13 +67,11 @@ jobs: runs-on: ubuntu-latest steps: + - name: Checkout - uses: actions/checkout@v4 - name: Install Rust - uses: dtolnay/rust-toolchain@v1 - with: - toolchain: stable - components: clippy + uses: actions-rust-lang/setup-rust-toolchain@v1 - name: Publish to crates.io (ascii) env: diff --git a/.github/workflows/language-badge.yml b/.github/workflows/language-badge.yml index ada1a30d8..0f494becc 100644 --- a/.github/workflows/language-badge.yml +++ b/.github/workflows/language-badge.yml @@ -1,7 +1,7 @@ name: Generate Language Badge on: schedule: - # Once week at midnight UTC + # Once a week at midnight UTC - cron: "0 0 * * 0" workflow_dispatch: @@ -10,14 +10,15 @@ jobs: runs-on: ubuntu-latest steps: + - name: Checkout - uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.ref }} token: ${{ secrets.BADGE_TOKEN }} + - name: Install Rust - uses: dtolnay/rust-toolchain@v1 - with: - toolchain: stable + uses: actions-rust-lang/setup-rust-toolchain@v1 + - name: Get Language Count id: vars run: echo "::set-output name=language_count::$(cargo run -- --languages | wc -l)" diff --git a/.github/workflows/msrv-badge.yml b/.github/workflows/msrv-badge.yml index e8bcc6b0c..00a3affc4 100644 --- a/.github/workflows/msrv-badge.yml +++ b/.github/workflows/msrv-badge.yml @@ -1,7 +1,7 @@ name: Generate MSRV Badge on: schedule: - # Once every week at midnight UTC + # Once a week at midnight UTC - cron: "0 0 * * 0" workflow_dispatch: @@ -10,14 +10,17 @@ jobs: runs-on: ubuntu-latest steps: + - name: Checkout - uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.ref }} token: ${{ secrets.BADGE_TOKEN }} + - name: Get Minimum Supported Rust Version uses: spenserblack/actions-msrv@v0.4 id: get-msrv timeout-minutes: 60 + - name: Create Badge run: curl https://img.shields.io/badge/rustc-${{ steps.get-msrv.outputs.msrv }}%2B-blue > ./assets/msrv-badge.svg - name: Commit Badge