Skip to content

Commit a1decc6

Browse files
committed
Fix inputs workflow parameters
1 parent 98f3c6d commit a1decc6

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/reusable_build_all_apps.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ on:
1212

1313
env:
1414
C_SDK_URL: 'https://github.com/LedgerHQ/ledger-secure-sdk.git'
15-
RUST_SDK_URL: 'https://github.com/LedgerHQ/ledger-device-rust-sdk.git'
1615

1716
jobs:
1817
how-workflow-is-called:
@@ -25,8 +24,8 @@ jobs:
2524
- name: Get repository and branch
2625
id: get_repo_and_branch
2726
run: |
28-
if [ -n "${{ github.event.inputs.c_sdk_branch }}" ]; then
29-
echo "repo=$RUST_SDK_URL" >> $GITHUB_OUTPUT
27+
if [ -n "${{ inputs.c_sdk_branch }}" ]; then
28+
echo "repo='LedgerHQ/ledger-device-rust-sdk'" >> $GITHUB_OUTPUT
3029
echo "branch='refs/heads/master'" >> $GITHUB_OUTPUT
3130
else
3231
echo "repo=${{ github.repository}}" >> $GITHUB_OUTPUT
@@ -135,8 +134,8 @@ jobs:
135134
- name: Build
136135
run: |
137136
# Clone C SDK if provided
138-
if [ -n "${{ github.event.inputs.c_sdk_branch }}" ]; then
139-
git clone $C_SDK_URL --branch ${{ github.event.inputs.c_sdk_branch }} --single-branch c_sdk
137+
if [ -n "${{ inputs.c_sdk_branch }}" ]; then
138+
git clone $C_SDK_URL --branch ${{ inputs.c_sdk_branch }} --single-branch c_sdk
140139
echo "setting LEDGER_SDK_PATH to $(realpath c_sdk)"
141140
LEDGER_SDK_PATH=$(realpath c_sdk)
142141
else

0 commit comments

Comments
 (0)