From 9d6f584a1479786d7b76e7816125732f85c0ccf9 Mon Sep 17 00:00:00 2001 From: Francesco Novy Date: Fri, 17 Feb 2023 14:37:27 +0100 Subject: [PATCH] ci: Fix adding size info to release --- .github/workflows/release-size-info.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-size-info.yml b/.github/workflows/release-size-info.yml index eae4a766d662..c03b9fbc6036 100644 --- a/.github/workflows/release-size-info.yml +++ b/.github/workflows/release-size-info.yml @@ -18,16 +18,17 @@ jobs: steps: # https://github.com/actions-ecosystem/action-regex-match - - uses: actions-ecosystem/action-regex-match@v2 + - name: Extract version from ref + uses: actions-ecosystem/action-regex-match@v2 id: head_version with: # Parse version from head ref, which is refs/tags/ - text: ${{ github.head_ref }} + text: ${{ env.GITHUB_REF }} regex: '^refs\/tags\/([\d.]+)$' - name: Get version id: get_version - run: echo "version=${{ github.event.inputs.version || steps.head_version.outputs.match }}" >> $GITHUB_OUTPUT + run: echo "version=${{ github.event.inputs.version || steps.head_version.outputs.group1 }}" >> $GITHUB_OUTPUT - name: Update Github Release if: steps.get_version.outputs.version != ''