Skip to content

Commit 1a5e5cf

Browse files
committed
ci: use job output
1 parent d058365 commit 1a5e5cf

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,18 @@ jobs:
5151
uses: jaxxstorm/action-install-gh-release@v1.12.0
5252
with:
5353
repo: k1LoW/octocov
54+
- name: create filename
55+
id: filename
56+
run: echo "filename=badge-${{ runner.os }}-$(test \"${{ matrix.neovim }}\" = \"true\" && echo \"neovim\" || echo \"vim\" )-${{ matrix.version }}.svg" >> "$GITHUB_OUTPUT"
5457
- name: make covarage badge
5558
run: |
56-
octocov badge coverage --out ${{ github.workspace }}/badge-${{ runner.os }}-$(test "${{ matrix.neovim }}" = "true" && echo "neovim" || echo "vim" )-${{ matrix.version }}.svg
59+
octocov badge coverage --out ${{ github.workspace }}/${{ steps.filename.outputs.filename }}
5760
- run: ls
5861
- name: upload badge to artifact
5962
uses: actions/upload-artifact@v4
6063
with:
61-
path: badge-${{ runner.os }}-$(test "${{ matrix.neovim }}" = "true" && echo "neovim" || echo "vim" )-${{ matrix.version }}.svg
62-
name: badge-${{ runner.os }}-$(test "${{ matrix.neovim }}" = "true" && echo "neovim" || echo "vim" )-${{ matrix.version }}.svg
64+
path: ${{ steps.filename.outputs.filename }}
65+
name: ${{ steps.filename.outputs.filename }}
6366
if-no-files-found: error
6467

6568
upload-coverage-badge:

0 commit comments

Comments
 (0)