Skip to content

Commit 9e2dd0f

Browse files
ci: bind package-path workflow input before shell use (#846)
Move inputs.package-path into step env before bash interpolation in publish-rust.yml and publish-js.yml. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent a8b3184 commit 9e2dd0f

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/publish-js.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,11 @@ jobs:
5151
- name: Compute variables
5252
id: compute
5353
shell: bash
54+
env:
55+
PACKAGE_PATH: ${{ inputs.package-path }}
5456
run: |
5557
echo "SOLANA_CLI_VERSION=$(make solana-cli-version)" >> "$GITHUB_OUTPUT"
56-
TARGET=$(echo ${{ inputs.package-path }} | sed 's#/#-#')
58+
TARGET=$(echo "$PACKAGE_PATH" | sed 's#/#-#')
5759
echo "TARGET=$TARGET" >> "$GITHUB_OUTPUT"
5860
5961
main:

.github/workflows/publish-rust.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,12 @@ jobs:
5858
- name: Compute variables
5959
id: compute
6060
shell: bash
61+
env:
62+
PACKAGE_PATH: ${{ inputs.package-path }}
6163
run: |
6264
echo "RUST_TOOLCHAIN_NIGHTLY=$(make rust-toolchain-nightly)" >> "$GITHUB_OUTPUT"
6365
echo "SOLANA_CLI_VERSION=$(make solana-cli-version)" >> "$GITHUB_OUTPUT"
64-
TARGET=$(echo ${{ inputs.package-path }} | sed 's#/#-#')
66+
TARGET=$(echo "$PACKAGE_PATH" | sed 's#/#-#')
6567
echo "TARGET=$TARGET" >> "$GITHUB_OUTPUT"
6668
6769
main:

0 commit comments

Comments
 (0)