|
1 | 1 | /* eslint-disable no-case-declarations */
|
2 |
| -import * as core from '@actions/core'; |
| 2 | +import { setOutput } from '@actions/core'; |
3 | 3 |
|
4 | 4 | import { CLIENTS, createClientName, GENERATORS, LANGUAGES } from '../../common.js';
|
5 | 5 | import { getLanguageFolder, getTestExtension, getTestOutputFolder } from '../../config.js';
|
@@ -139,31 +139,31 @@ async function createClientMatrix(baseBranch: string): Promise<void> {
|
139 | 139 | // If there are updates for the Swift client, we allow ourselves to run the CTS on macOS
|
140 | 140 | const swiftData = clientMatrix.client.find((c) => c.language === 'swift');
|
141 | 141 | if (swiftData) {
|
142 |
| - core.setOutput('SWIFT_DATA', JSON.stringify(swiftData)); |
143 |
| - core.setOutput('RUN_MACOS_SWIFT_CTS', true); |
| 142 | + setOutput('SWIFT_DATA', JSON.stringify(swiftData)); |
| 143 | + setOutput('RUN_MACOS_SWIFT_CTS', true); |
144 | 144 | }
|
145 | 145 |
|
146 | 146 | // If there are updates for the Kotlin client, we allow ourselves to run the build step on macOS
|
147 | 147 | const runKotlin = clientMatrix.client.find((c) => c.language === 'kotlin');
|
148 | 148 | if (runKotlin) {
|
149 |
| - core.setOutput('RUN_MACOS_KOTLIN_BUILD', true); |
| 149 | + setOutput('RUN_MACOS_KOTLIN_BUILD', true); |
150 | 150 | }
|
151 | 151 |
|
152 | 152 | const javascriptData = clientMatrix.client.find((c) => c.language === 'javascript');
|
153 | 153 | if (javascriptData) {
|
154 |
| - core.setOutput('JAVASCRIPT_DATA', JSON.stringify(javascriptData)); |
155 |
| - core.setOutput('RUN_GEN_JAVASCRIPT', true); |
| 154 | + setOutput('JAVASCRIPT_DATA', JSON.stringify(javascriptData)); |
| 155 | + setOutput('RUN_GEN_JAVASCRIPT', true); |
156 | 156 | clientMatrix.client = clientMatrix.client.filter((c) => c.language !== 'javascript');
|
157 | 157 | }
|
158 | 158 |
|
159 | 159 | const shouldRun = clientMatrix.client.length > 0;
|
160 | 160 |
|
161 |
| - core.setOutput('RUN_GEN', shouldRun); |
162 |
| - core.setOutput('GEN_MATRIX', JSON.stringify(shouldRun ? clientMatrix : EMPTY_MATRIX)); |
| 161 | + setOutput('RUN_GEN', shouldRun); |
| 162 | + setOutput('GEN_MATRIX', JSON.stringify(shouldRun ? clientMatrix : EMPTY_MATRIX)); |
163 | 163 | }
|
164 | 164 |
|
165 | 165 | function createSpecMatrix(): void {
|
166 |
| - core.setOutput( |
| 166 | + setOutput( |
167 | 167 | 'MATRIX',
|
168 | 168 | JSON.stringify({
|
169 | 169 | bundledPath: 'specs/bundled',
|
|
0 commit comments