diff --git a/.github/workflows/publish-js.yml b/.github/workflows/publish-js.yml index 6c6036e..e2af4d6 100644 --- a/.github/workflows/publish-js.yml +++ b/.github/workflows/publish-js.yml @@ -54,9 +54,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 8bf06cc..e549f40 100644 --- a/.github/workflows/publish-rust.yml +++ b/.github/workflows/publish-rust.yml @@ -60,10 +60,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: