From 9b3a291bc2139035031ebb97c3661eca965df38b Mon Sep 17 00:00:00 2001 From: Matt Trachier Date: Fri, 28 Jun 2024 17:27:28 -0500 Subject: [PATCH] fix: arrange quotes (#1363) Signed-off-by: matttrach --- .github/workflows/pre-release.yaml | 8 ++++---- .github/workflows/release.yaml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pre-release.yaml b/.github/workflows/pre-release.yaml index 4a765ce5..83616f23 100644 --- a/.github/workflows/pre-release.yaml +++ b/.github/workflows/pre-release.yaml @@ -37,11 +37,11 @@ jobs: GPG_PASSPHRASE: ${{ env.GPG_PASSPHRASE }} run: | echo "Importing gpg key" - echo -n "${{ env.GPG_KEY }}" | gpg --import --batch > /dev/null + echo -n '${{ env.GPG_KEY }}' | gpg --import --batch > /dev/null echo "signing SHASUM file" - VERSION_NO_V=$(echo ${{ github.ref_name }} | sed "s/^[v|V]//") - SHASUM_FILE=dist/artifacts/${{ github.ref_name }}/terraform-provider-rancher2_"$VERSION_NO_V"_SHA256SUMS - echo ${{ env.GPG_PASSPHRASE }} | gpg --detach-sig --pinentry-mode loopback --passphrase-fd 0 --output "$SHASUM_FILE".sig --sign "$SHASUM_FILE" + VERSION_NO_V="$(echo ${{ github.ref_name }} | tr -d 'v')" + SHASUM_FILE="dist/artifacts/${{ github.ref_name }}/terraform-provider-rancher2_${VERSION_NO_V}_SHA256SUMS" + echo '${{ env.GPG_PASSPHRASE }}' | gpg --detach-sig --pinentry-mode loopback --passphrase-fd 0 --output "${SHASUM_FILE}.sig" --sign "${SHASUM_FILE}" - name: GH release env: diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index df6e7933..9e83d265 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -37,11 +37,11 @@ jobs: GPG_PASSPHRASE: ${{ env.GPG_PASSPHRASE }} run: | echo "Importing gpg key" - echo -n "${{ env.GPG_KEY }}" | gpg --import --batch > /dev/null + echo -n '${{ env.GPG_KEY }}' | gpg --import --batch > /dev/null echo "signing SHASUM file" - VERSION_NO_V=$(echo ${{ github.ref_name }} | sed "s/^[v|V]//") - SHASUM_FILE=dist/artifacts/${{ github.ref_name }}/terraform-provider-rancher2_"$VERSION_NO_V"_SHA256SUMS - echo ${{ env.GPG_PASSPHRASE }} | gpg --detach-sig --pinentry-mode loopback --passphrase-fd 0 --output "$SHASUM_FILE".sig --sign "$SHASUM_FILE" + VERSION_NO_V="$(echo ${{ github.ref_name }} | tr -d 'v')" + SHASUM_FILE="dist/artifacts/${{ github.ref_name }}/terraform-provider-rancher2_${VERSION_NO_V}_SHA256SUMS" + echo '${{ env.GPG_PASSPHRASE }}' | gpg --detach-sig --pinentry-mode loopback --passphrase-fd 0 --output "${SHASUM_FILE}.sig" --sign "${SHASUM_FILE}" - name: GH release env: