From 673fe3f0aedbee7f492764033a795ef266a965fa Mon Sep 17 00:00:00 2001 From: jrfnl Date: Sun, 8 Dec 2024 10:22:54 +0100 Subject: [PATCH] Expolarixe --- .github/workflows/verify-release.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/verify-release.yml b/.github/workflows/verify-release.yml index e9ba98b6ea..6e529419bf 100644 --- a/.github/workflows/verify-release.yml +++ b/.github/workflows/verify-release.yml @@ -93,6 +93,9 @@ jobs: # yamllint disable-line rule:line-length run: echo "VERSION=$(php "$FILE_NAME" --version | grep --only-matching --max-count=1 --extended-regexp '\b[0-9]+\.[0-9]+')" >> "$GITHUB_OUTPUT" + - name: "DEBUG: show grabbed version" + run: echo ${{ steps.asset_version.outputs.VERSION }} + - name: Fail the build if the PHAR is not the correct version if: ${{ steps.asset_version.outputs.VERSION != steps.version.outputs.TAG }} run: exit 1 @@ -164,6 +167,9 @@ jobs: # yamllint disable-line rule:line-length run: echo "VERSION=$(php "$FILE_NAME" --version | grep --only-matching --max-count=1 --extended-regexp '\b[0-9]+\.[0-9]+')" >> "$GITHUB_OUTPUT" + - name: "DEBUG: show grabbed version" + run: echo ${{ steps.asset_version.outputs.VERSION }} + - name: Fail the build if the PHAR is not the correct version if: ${{ steps.asset_version.outputs.VERSION != steps.version.outputs.TAG }} run: exit 1 @@ -237,6 +243,9 @@ jobs: # yamllint disable-line rule:line-length run: echo "VERSION=$(php "$FILE_NAME" --version | grep --only-matching --max-count=1 --extended-regexp '\b[0-9]+\.[0-9]+')" >> "$GITHUB_OUTPUT" + - name: "DEBUG: show grabbed version" + run: echo ${{ steps.asset_version.outputs.VERSION }} + - name: Fail the build if the PHAR is not the correct version if: ${{ steps.asset_version.outputs.VERSION != steps.version.outputs.TAG }} run: exit 1 @@ -275,7 +284,7 @@ jobs: run: | echo "TAG=${{ fromJson(steps.get_latest_release.outputs.data).tag_name }}" >> "$GITHUB_OUTPUT" - - name: Show tag name found in API response + - name: "DEBUG: show tag name found in API response" run: "echo latest release: ${{ steps.version.outputs.TAG }}" - name: Setup PHP @@ -289,7 +298,7 @@ jobs: - name: Install run: phive install ${{ matrix.pharfile }} --copy --trust-gpg-keys 689DAD778FF08760E046228BA978220305CD5C32 - - name: List files + - name: "DEBUG: list files" run: ls -R - name: Verify attestation of the PHAR file @@ -305,7 +314,7 @@ jobs: env: FILE_NAME: ./tools/${{ matrix.pharfile }} # yamllint disable-line rule:line-length - run: echo "VERSION=$(php "$FILE_NAME" --version | grep --only-matching --max-count=1 --extended-regexp '\b[0-9]+\.[0-9]+')" >> "$GITHUB_OUTPUT" + run: echo "VERSION=$(php "$FILE_NAME" --version | grep --only-matching --max-count=1 --extended-regexp '\b[0-9]+(\.[0-9]+)+')" >> "$GITHUB_OUTPUT" - name: "DEBUG: show grabbed version" run: echo ${{ steps.asset_version.outputs.VERSION }}