diff --git a/.github/workflows/publish-js.yml b/.github/workflows/publish-js.yml index 63b7ed0..1933021 100644 --- a/.github/workflows/publish-js.yml +++ b/.github/workflows/publish-js.yml @@ -48,9 +48,11 @@ jobs: - name: Compute variables id: compute shell: bash + env: + PACKAGE_PATH: ${{ inputs.package-path }} run: | echo "SOLANA_CLI_VERSION=$(make solana-cli-version)" >> "$GITHUB_OUTPUT" - TARGET=$(echo ${{ inputs.package-path }} | sed 's#/#-#') + TARGET=$(echo "$PACKAGE_PATH" | sed 's#/#-#') echo "TARGET=$TARGET" >> "$GITHUB_OUTPUT" main: diff --git a/.github/workflows/publish-rust.yml b/.github/workflows/publish-rust.yml index a84e267..59ca9c4 100644 --- a/.github/workflows/publish-rust.yml +++ b/.github/workflows/publish-rust.yml @@ -55,10 +55,12 @@ jobs: - name: Compute variables id: compute shell: bash + env: + PACKAGE_PATH: ${{ inputs.package-path }} run: | echo "RUST_TOOLCHAIN_NIGHTLY=$(make rust-toolchain-nightly)" >> "$GITHUB_OUTPUT" echo "SOLANA_CLI_VERSION=$(make solana-cli-version)" >> "$GITHUB_OUTPUT" - TARGET=$(echo ${{ inputs.package-path }} | sed 's#/#-#') + TARGET=$(echo "$PACKAGE_PATH" | sed 's#/#-#') echo "TARGET=$TARGET" >> "$GITHUB_OUTPUT" main: