Skip to content

Commit 7950e47

Browse files
committed
Fix linter errors in sync.ts
1 parent e608db4 commit 7950e47

File tree

1 file changed

+7
-17
lines changed

1 file changed

+7
-17
lines changed

pr-checks/sync.ts

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,7 @@ const languageSetups: LanguageSetups = {
194194
name: "Install Go",
195195
uses: "actions/setup-go@v6",
196196
with: {
197-
"go-version":
198-
"${{ inputs.go-version || '" + defaultLanguageVersions.go + "' }}",
197+
"go-version": `\${{ inputs.go-version || '${defaultLanguageVersions.go}' }}`,
199198
// to avoid potentially misleading autobuilder results where we expect it to download
200199
// dependencies successfully, but they actually come from a warm cache
201200
cache: false,
@@ -211,10 +210,7 @@ const languageSetups: LanguageSetups = {
211210
name: "Install Java",
212211
uses: "actions/setup-java@v5",
213212
with: {
214-
"java-version":
215-
"${{ inputs.java-version || '" +
216-
defaultLanguageVersions.java +
217-
"' }}",
213+
"java-version": `\${{ inputs.java-version || '${defaultLanguageVersions.java}' }}`,
218214
distribution: "temurin",
219215
},
220216
},
@@ -228,10 +224,7 @@ const languageSetups: LanguageSetups = {
228224
name: "Install Python",
229225
uses: "actions/setup-python@v6",
230226
with: {
231-
"python-version":
232-
"${{ inputs.python-version || '" +
233-
defaultLanguageVersions.python +
234-
"' }}",
227+
"python-version": `\${{ inputs.python-version || '${defaultLanguageVersions.python}' }}`,
235228
},
236229
},
237230
],
@@ -244,10 +237,7 @@ const languageSetups: LanguageSetups = {
244237
name: "Install .NET",
245238
uses: "actions/setup-dotnet@v5",
246239
with: {
247-
"dotnet-version":
248-
"${{ inputs.dotnet-version || '" +
249-
defaultLanguageVersions.csharp +
250-
"' }}",
240+
"dotnet-version": `\${{ inputs.dotnet-version || '${defaultLanguageVersions.csharp}' }}`,
251241
},
252242
},
253243
],
@@ -653,7 +643,7 @@ function main(): void {
653643

654644
let extraGroupName = "";
655645
for (const inputName of Object.keys(combinedInputs)) {
656-
extraGroupName += "-${{inputs." + inputName + "}}";
646+
extraGroupName += `-\${{inputs.${inputName}}}`;
657647
}
658648

659649
const cron = new yaml.Scalar("0 5 * * *");
@@ -691,7 +681,7 @@ function main(): void {
691681
concurrency: {
692682
"cancel-in-progress":
693683
"${{ github.event_name == 'pull_request' || false }}",
694-
group: checkName + "-${{github.ref}}" + extraGroupName,
684+
group: `${checkName}-\${{github.ref}}${extraGroupName}`,
695685
},
696686
jobs: {
697687
[checkName]: checkJob,
@@ -715,7 +705,7 @@ function main(): void {
715705
combinedInputs = { ...combinedInputs, ...checkInputs };
716706

717707
for (const inputName of Object.keys(checkInputs)) {
718-
checkWith[inputName] = "${{ inputs." + inputName + " }}";
708+
checkWith[inputName] = `\${{ inputs.${inputName} }}`;
719709
}
720710

721711
jobs[checkName] = {

0 commit comments

Comments
 (0)