Skip to content

Commit

Permalink
fix github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
o2sh committed Dec 24, 2024
1 parent 1d6f57c commit fc0283e
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/language-badge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/msrv-badge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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: |
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/web-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fc0283e

Please sign in to comment.