From fc0283ed66fc4219880cc248256326e15df4abcb Mon Sep 17 00:00:00 2001 From: o2sh Date: Tue, 24 Dec 2024 16:26:20 +0100 Subject: [PATCH] fix github actions --- .github/workflows/cd.yml | 8 ++++---- .github/workflows/ci.yml | 2 +- .github/workflows/language-badge.yml | 6 ++++-- .github/workflows/msrv-badge.yml | 3 ++- .github/workflows/web-ci.yml | 3 ++- 5 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index f5d02b9b4..5001ef87c 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -15,9 +15,9 @@ jobs: steps: - name: Checkout - - uses: actions/checkout@v4 + uses: actions/checkout@v4 - - name: Install Rust + - name: Setup Rust uses: actions-rust-lang/setup-rust-toolchain@v1 - name: Build @@ -68,9 +68,9 @@ jobs: steps: - name: Checkout - - uses: actions/checkout@v4 + uses: actions/checkout@v4 - - name: Install Rust + - name: Setup Rust uses: actions-rust-lang/setup-rust-toolchain@v1 - name: Publish to crates.io (ascii) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4782a942f..49102de80 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Install Rust + - name: Setup Rust uses: actions-rust-lang/setup-rust-toolchain@v1 - name: Build diff --git a/.github/workflows/language-badge.yml b/.github/workflows/language-badge.yml index 0f494becc..972994b16 100644 --- a/.github/workflows/language-badge.yml +++ b/.github/workflows/language-badge.yml @@ -11,19 +11,21 @@ jobs: steps: - name: Checkout - - uses: actions/checkout@v4 + uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.ref }} token: ${{ secrets.BADGE_TOKEN }} - - name: Install Rust + - name: Setup Rust 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)" + - name: Get Badge run: curl https://img.shields.io/badge/languages-${{ steps.vars.outputs.language_count }}-blue > ./assets/language-badge.svg + - name: Commit Badge continue-on-error: true run: | diff --git a/.github/workflows/msrv-badge.yml b/.github/workflows/msrv-badge.yml index 00a3affc4..7f8cdc1a4 100644 --- a/.github/workflows/msrv-badge.yml +++ b/.github/workflows/msrv-badge.yml @@ -11,7 +11,7 @@ jobs: steps: - name: Checkout - - uses: actions/checkout@v4 + uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.ref }} token: ${{ secrets.BADGE_TOKEN }} @@ -23,6 +23,7 @@ jobs: - 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 continue-on-error: true run: | diff --git a/.github/workflows/web-ci.yml b/.github/workflows/web-ci.yml index a085b7b9b..c0b3e3102 100644 --- a/.github/workflows/web-ci.yml +++ b/.github/workflows/web-ci.yml @@ -18,7 +18,8 @@ jobs: working-directory: docs/vercel steps: - - uses: actions/checkout@v4 + - name: Checkout + uses: actions/checkout@v4 - name: Setup Node uses: actions/setup-node@v4