diff --git a/.github/workflows/publish-js.yml b/.github/workflows/publish-js.yml index 6bc47bde..cdbbc945 100644 --- a/.github/workflows/publish-js.yml +++ b/.github/workflows/publish-js.yml @@ -51,9 +51,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 187d1e78..132b7198 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: