|
23 | 23 | description: "Upload build output GitHub artifact (for local output)" |
24 | 24 | required: false |
25 | 25 | default: false |
26 | | - envs: |
27 | | - type: string |
28 | | - description: "Environment variables to inject in the reusable workflow as list of key-value pair. This is similar to the GitHub Actions env context that is currently not available when calling a reusable workflow" |
29 | | - required: false |
30 | 26 | context: |
31 | 27 | type: string |
32 | 28 | description: "Context to build from in the Git working tree" |
@@ -140,18 +136,6 @@ jobs: |
140 | 136 | includes: ${{ steps.set.outputs.includes }} |
141 | 137 | sign: ${{ steps.set.outputs.sign }} |
142 | 138 | steps: |
143 | | - - |
144 | | - name: Environment variables |
145 | | - uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 |
146 | | - env: |
147 | | - INPUT_ENVS: ${{ inputs.envs }} |
148 | | - with: |
149 | | - script: | |
150 | | - for (const env of core.getMultilineInput('envs')) { |
151 | | - core.info(env); |
152 | | - const [key, value] = env.split('=', 2); |
153 | | - core.exportVariable(key, value); |
154 | | - } |
155 | 139 | - |
156 | 140 | name: Install @docker/actions-toolkit |
157 | 141 | uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 |
@@ -320,18 +304,6 @@ jobs: |
320 | 304 | result_18: ${{ steps.result.outputs.result_18 }} |
321 | 305 | result_19: ${{ steps.result.outputs.result_19 }} |
322 | 306 | steps: |
323 | | - - |
324 | | - name: Environment variables |
325 | | - uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 |
326 | | - env: |
327 | | - INPUT_ENVS: ${{ inputs.envs }} |
328 | | - with: |
329 | | - script: | |
330 | | - for (const env of core.getMultilineInput('envs')) { |
331 | | - core.info(env); |
332 | | - const [key, value] = env.split('=', 2); |
333 | | - core.exportVariable(key, value); |
334 | | - } |
335 | 307 | - |
336 | 308 | name: Install @docker/actions-toolkit |
337 | 309 | uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 |
|
0 commit comments