diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 182f3ee8..5ac85067 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -53,7 +53,7 @@ jobs: - name: Sign PHAR file using Cosign run: | - INDEX=$(cosign sign-blob --yes --output-signature n98-magerun2.phar.sig n98-magerun2.phar | grep "tlog entry created with index:" | awk -F': ' '{print $2}') + INDEX=$(cosign sign-blob --yes --output-signature n98-magerun2.phar.sig n98-magerun2.phar | grep -oP "tlog entry created with index: \K[0-9]+") if [ -z "$INDEX" ]; then echo "Error: Transparency Log Entry Index not found!" >&2 exit 1