mirror of
https://github.com/actions/setup-dotnet.git
synced 2025-08-14 20:55:11 +00:00
fix: revert main script path changes
This commit is contained in:
parent
d958ca3660
commit
3025f77b29
@ -22,12 +22,12 @@ inputs:
|
|||||||
required: false
|
required: false
|
||||||
default: false
|
default: false
|
||||||
outputs:
|
outputs:
|
||||||
cache-hit:
|
cache-hit:
|
||||||
description: 'A boolean value to indicate if a cache was hit.'
|
description: 'A boolean value to indicate if a cache was hit.'
|
||||||
dotnet-version:
|
dotnet-version:
|
||||||
description: 'Contains the installed by action .NET SDK version for reuse.'
|
description: 'Contains the installed by action .NET SDK version for reuse.'
|
||||||
runs:
|
runs:
|
||||||
using: 'node16'
|
using: 'node16'
|
||||||
main: 'dist/setup/index.js'
|
main: 'dist/index.js'
|
||||||
post: 'dist/cache-save/index.js'
|
post: 'dist/cache-save/index.js'
|
||||||
post-if: success()
|
post-if: success()
|
||||||
|
4
dist/setup/index.js → dist/index.js
vendored
4
dist/setup/index.js → dist/index.js
vendored
@ -71288,7 +71288,7 @@ class DotnetCoreInstaller {
|
|||||||
];
|
];
|
||||||
const scriptName = utils_1.IS_WINDOWS ? 'install-dotnet.ps1' : 'install-dotnet.sh';
|
const scriptName = utils_1.IS_WINDOWS ? 'install-dotnet.ps1' : 'install-dotnet.sh';
|
||||||
const escapedScript = path_1.default
|
const escapedScript = path_1.default
|
||||||
.join(__dirname, '..', '..', 'externals', scriptName)
|
.join(__dirname, '..', 'externals', scriptName)
|
||||||
.replace(/'/g, "''");
|
.replace(/'/g, "''");
|
||||||
let scriptArguments;
|
let scriptArguments;
|
||||||
let scriptPath = '';
|
let scriptPath = '';
|
||||||
@ -71496,7 +71496,7 @@ function run() {
|
|||||||
else {
|
else {
|
||||||
core.setOutput(constants_1.Outputs.CacheHit, false);
|
core.setOutput(constants_1.Outputs.CacheHit, false);
|
||||||
}
|
}
|
||||||
const matchersPath = path_1.default.join(__dirname, '..', '..', '.github');
|
const matchersPath = path_1.default.join(__dirname, '..', '.github');
|
||||||
core.info(`##[add-matcher]${path_1.default.join(matchersPath, 'csc.json')}`);
|
core.info(`##[add-matcher]${path_1.default.join(matchersPath, 'csc.json')}`);
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
@ -3,9 +3,9 @@
|
|||||||
"version": "3.0.2",
|
"version": "3.0.2",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "setup dotnet action",
|
"description": "setup dotnet action",
|
||||||
"main": "dist/setup/index.js",
|
"main": "dist/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "ncc build -o dist/setup src/setup-dotnet.ts && ncc build -o dist/cache-save src/cache-save.ts",
|
"build": "ncc build src/setup-dotnet.ts && ncc build -o dist/cache-save src/cache-save.ts",
|
||||||
"format": "prettier --no-error-on-unmatched-pattern --config ./.prettierrc.js --write \"**/*.{ts,yml,yaml}\"",
|
"format": "prettier --no-error-on-unmatched-pattern --config ./.prettierrc.js --write \"**/*.{ts,yml,yaml}\"",
|
||||||
"format-check": "prettier --no-error-on-unmatched-pattern --config ./.prettierrc.js --check \"**/*.{ts,yml,yaml}\"",
|
"format-check": "prettier --no-error-on-unmatched-pattern --config ./.prettierrc.js --check \"**/*.{ts,yml,yaml}\"",
|
||||||
"lint": "eslint --config ./.eslintrc.js \"**/*.ts\"",
|
"lint": "eslint --config ./.eslintrc.js \"**/*.ts\"",
|
||||||
|
@ -188,7 +188,7 @@ export class DotnetCoreInstaller {
|
|||||||
];
|
];
|
||||||
const scriptName = IS_WINDOWS ? 'install-dotnet.ps1' : 'install-dotnet.sh';
|
const scriptName = IS_WINDOWS ? 'install-dotnet.ps1' : 'install-dotnet.sh';
|
||||||
const escapedScript = path
|
const escapedScript = path
|
||||||
.join(__dirname, '..', '..', 'externals', scriptName)
|
.join(__dirname, '..', 'externals', scriptName)
|
||||||
.replace(/'/g, "''");
|
.replace(/'/g, "''");
|
||||||
let scriptArguments: string[];
|
let scriptArguments: string[];
|
||||||
let scriptPath = '';
|
let scriptPath = '';
|
||||||
|
@ -101,7 +101,7 @@ export async function run() {
|
|||||||
core.setOutput(Outputs.CacheHit, false);
|
core.setOutput(Outputs.CacheHit, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
const matchersPath = path.join(__dirname, '..', '..', '.github');
|
const matchersPath = path.join(__dirname, '..', '.github');
|
||||||
core.info(`##[add-matcher]${path.join(matchersPath, 'csc.json')}`);
|
core.info(`##[add-matcher]${path.join(matchersPath, 'csc.json')}`);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
core.setFailed(error.message);
|
core.setFailed(error.message);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user