|
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" |
@@ -132,18 +128,6 @@ jobs: |
132 | 128 | includes: ${{ steps.set.outputs.includes }} |
133 | 129 | sign: ${{ steps.set.outputs.sign }} |
134 | 130 | steps: |
135 | | - - |
136 | | - name: Environment variables |
137 | | - uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 |
138 | | - env: |
139 | | - INPUT_ENVS: ${{ inputs.envs }} |
140 | | - with: |
141 | | - script: | |
142 | | - for (const env of core.getMultilineInput('envs')) { |
143 | | - core.info(env); |
144 | | - const [key, value] = env.split('=', 2); |
145 | | - core.exportVariable(key, value); |
146 | | - } |
147 | 131 | - |
148 | 132 | name: Install @docker/actions-toolkit |
149 | 133 | uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 |
@@ -312,18 +296,6 @@ jobs: |
312 | 296 | result_18: ${{ steps.result.outputs.result_18 }} |
313 | 297 | result_19: ${{ steps.result.outputs.result_19 }} |
314 | 298 | steps: |
315 | | - - |
316 | | - name: Environment variables |
317 | | - uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 |
318 | | - env: |
319 | | - INPUT_ENVS: ${{ inputs.envs }} |
320 | | - with: |
321 | | - script: | |
322 | | - for (const env of core.getMultilineInput('envs')) { |
323 | | - core.info(env); |
324 | | - const [key, value] = env.split('=', 2); |
325 | | - core.exportVariable(key, value); |
326 | | - } |
327 | 299 | - |
328 | 300 | name: Install @docker/actions-toolkit |
329 | 301 | uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 |
|
0 commit comments