diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2f699ff..1514a9c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,7 +38,7 @@ jobs: id: current_version run: | python -m pip install . --no-deps - out="$(pip show ${{ env.PKG_NAME }} | grep Version: | awk '{print $2}')" + out="$(pip show ${{ env.PKG_NAME }} | grep 'Version:' | awk '{print $2}')" echo "$out" echo "::set-output name=current_version::$out" shell: bash diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index fef6c19..a8985d6 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -12,7 +12,7 @@ env: jobs: - release-version-bumped: + release-ready: runs-on: ubuntu-latest if: github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'stable' steps: @@ -27,7 +27,7 @@ jobs: run: | python -m pip install --upgrade pip pip install . --no-deps - out="$(pip show ${{ env.PKG_NAME }} | grep Version: | cut -d'' '' -f 2)" + out="$(pip show ${{ env.PKG_NAME }} | grep 'Version:' | awk '{print $2}')" echo "$out" echo "::set-output name=current_version::$out" shell: bash