From 3b1e2bb8121cfc9ca8cd8f9814db14aa02a6fb91 Mon Sep 17 00:00:00 2001 From: Jiaqi Luo <6218999+jiaqiluo@users.noreply.github.com> Date: Tue, 15 Oct 2024 13:13:55 -0700 Subject: [PATCH] fix env var in the GHA --- .github/workflows/pre-release.yaml | 4 ++-- .github/workflows/release.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pre-release.yaml b/.github/workflows/pre-release.yaml index bf5732e0..299ff7a1 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 }}" | base64 --decode | gpg --import --batch >/dev/null + echo -n "$GPG_KEY" | base64 --decode | 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-rke_"$VERSION_NO_V"_SHA256SUMS - echo ${{ env.GPG_PASSPHRASE }} | gpg --detach-sig --pinentry-mode loopback --passphrase-fd 0 --output "$SHASUM_FILE".sig --sign "$SHASUM_FILE" + echo "$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 960a3bfc..8c661d70 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 }}" | base64 --decode | gpg --import --batch >/dev/null + echo -n "$GPG_KEY" | base64 --decode | 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-rke_"$VERSION_NO_V"_SHA256SUMS - echo ${{ env.GPG_PASSPHRASE }} | gpg --detach-sig --pinentry-mode loopback --passphrase-fd 0 --output "$SHASUM_FILE".sig --sign "$SHASUM_FILE" + echo "$GPG_PASSPHRASE" | gpg --detach-sig --pinentry-mode loopback --passphrase-fd 0 --output "$SHASUM_FILE".sig --sign "$SHASUM_FILE" - name: GH release env: