Skip to content

Commit e18b3ca

Browse files
committed
fix language-badge GHA with ::set-ouput
1 parent f236104 commit e18b3ca

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Diff for: .github/workflows/language-badge.yml

+8-5
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,16 @@ jobs:
1010

1111
steps:
1212
- uses: actions/checkout@v2
13-
- name: Get Language Count
14-
uses: spenserblack/actions-set-output@v1
15-
id: lang-count
13+
- name: Install Rust
14+
uses: actions-rs/toolchain@v1
1615
with:
17-
variables: COUNT=$(cargo run -- --languages | wc -l)
16+
toolchain: stable
17+
profile: minimal
18+
- name: Get Language Count
19+
id: vars
20+
run: echo "::set-output name=language_count::$(cargo run -- --languages | wc -l)"
1821
- name: Get Badge
19-
run: curl https://img.shields.io/badge/languages-${{ steps.lang-count.outputs.COUNT }}-blue > ./assets/language-badge.svg
22+
run: curl https://img.shields.io/badge/languages-${{steps.vars.language_count}}-blue > ./assets/language-badge.svg
2023
- name: Commit Badge
2124
continue-on-error: true
2225
run: |

0 commit comments

Comments
 (0)