Skip to content

Commit 01209f2

Browse files
committed
chore: optionally set env
1 parent 1d10865 commit 01209f2

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/externalNut.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,14 +153,19 @@ jobs:
153153
- name: Build the external project (where the NUTs are)
154154
run: yarn compile
155155

156+
- name: Set optional sf executable path
157+
if: inputs.sfdxExecutablePath
158+
run: echo "TESTKIT_EXECUTABLE_PATH=$INPUTS_SF_EXECUTABLE_PATH" >> $GITHUB_ENV
159+
env:
160+
INPUTS_SF_EXECUTABLE_PATH: ${{ inputs.sfdxExecutablePath }}
161+
156162
- name: NUTs with ${{ inputs.attempts }} attempts
157163
uses: salesforcecli/github-workflows/.github/actions/retry@main
158164
with:
159165
max_attempts: ${{ inputs.attempts }}
160166
command: ${{ inputs.command }}
161167
retry_on: error
162168
env:
163-
TESTKIT_EXECUTABLE_PATH: ${{ inputs.sfdxExecutablePath }}
164169
SF_DISABLE_TELEMETRY: true
165170
TESTKIT_AUTH_URL: ${{ secrets.TESTKIT_AUTH_URL }}
166171
TESTKIT_HUB_USERNAME: ${{ secrets.TESTKIT_HUB_USERNAME }}

.github/workflows/nut.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,19 @@ jobs:
9999
- run: yarn oclif manifest
100100
if: ${{ steps.is-oclif-plugin.outputs.bool == 'true' }}
101101

102+
- name: Set optional sf executable path
103+
if: inputs.sfdxExecutablePath
104+
run: echo "TESTKIT_EXECUTABLE_PATH=$INPUTS_SF_EXECUTABLE_PATH" >> $GITHUB_ENV
105+
env:
106+
INPUTS_SF_EXECUTABLE_PATH: ${{ inputs.sfdxExecutablePath }}
107+
102108
- name: NUTs with ${{ inputs.retries }} attempts
103109
uses: salesforcecli/github-workflows/.github/actions/retry@main
104110
with:
105111
max_attempts: ${{ inputs.retries }}
106112
command: ${{ inputs.command }}
107113
retry_on: error
108114
env:
109-
TESTKIT_EXECUTABLE_PATH: ${{ inputs.sfdxExecutablePath }}
110115
TESTKIT_AUTH_URL: ${{ secrets.TESTKIT_AUTH_URL}}
111116
TESTKIT_HUB_USERNAME: ${{ secrets.TESTKIT_HUB_USERNAME }}
112117
TESTKIT_JWT_CLIENT_ID: ${{ secrets.TESTKIT_JWT_CLIENT_ID }}

0 commit comments

Comments
 (0)