From 3bb70818aaf2bd4f9a69e4cf7acbc246956fb0ba Mon Sep 17 00:00:00 2001 From: A5rocks Date: Tue, 24 Dec 2024 11:13:15 +0900 Subject: [PATCH] Fix the output syntax --- .github/workflows/ci.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 680c072a9..32e1e63cb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -354,7 +354,7 @@ jobs: run: source .venv/bin/activate && ./ci.sh - name: Get Python version for codecov flag id: get-version - run: python -c "import sys; print('.'.join(map(str, sys.version_info[:2])))" >> "${GITHUB_OUTPUT}" + run: python -c "import sys; print('version=' + '.'.join(map(str, sys.version_info[:2])))" >> "${GITHUB_OUTPUT}" - if: always() uses: codecov/codecov-action@v3 with: @@ -413,9 +413,7 @@ jobs: - name: get Python version for codecov flag id: get-version - run: >- - echo "version=$(python -V | cut -d' ' -f2 | cut -d'.' -f1,2)" - >> "${GITHUB_OUTPUT}" + run: python -c "import sys; print('version=' + '.'.join(map(str, sys.version_info[:2])))" >> "${GITHUB_OUTPUT}" - if: always() uses: codecov/codecov-action@v5 with: