Skip to content

Commit

Permalink
[AUTO] Update generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
sersoft-bot committed Oct 24, 2022
1 parent 8abdca3 commit 5c05ca9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ async function install(installBase, branchName, versionTag, platform) {
await io.mkdirP(installBase);
return await util.promisify(fs.mkdtemp)('SwiftyActions');
});
const swiftPkg = path.join(tempPath, "swift.tar.gz");
const swiftSig = path.join(tempPath, "swift.tar.gz.sig");
const allKeysFile = path.join(tempPath, "all-keys.asc");
const swiftPkg = path.join(tempPath, 'swift.tar.gz');
const swiftSig = path.join(tempPath, 'swift.tar.gz.sig');
const allKeysFile = path.join(tempPath, 'all-keys.asc');
await core.group('Downloading files', async () => {
const swiftURL = `https://download.swift.org/${branchName}/${platform.split('.').join('')}/${versionTag}/${versionTag}-${platform}.tar.gz`;
await Promise.all([
Expand All @@ -91,15 +91,15 @@ async function install(installBase, branchName, versionTag, platform) {
async function main() {
var _a;
switch (process.platform) {
case "linux": break;
default: throw new Error("This action can only install Swift on linux!");
case 'linux': break;
default: throw new Error('This action can only install Swift on linux!');
}
core.startGroup('Validate input');
const swiftReleaseInput = core.getInput('release-version');
let swiftRelease;
let swiftBranch, swiftVersion;
if (!swiftReleaseInput) {
core.info("`release-version` was not set. Requiring `branch-name` and `version-tag` parameters!");
core.info('`release-version` was not set. Requiring `branch-name` and `version-tag` parameters!');
swiftBranch = core.getInput('branch-name', { required: true });
swiftVersion = core.getInput('version-tag', { required: true });
swiftRelease = swiftReleaseInput;
Expand Down Expand Up @@ -215,14 +215,14 @@ async function main() {
}
}
else {
core.info("Skipping installation of dependencies...");
core.info('Skipping installation of dependencies...');
}
const versionIdentifier = `${swiftBranch}-${swiftVersion}-${swiftPlatform}`;
const mangledName = `swift.${versionIdentifier}`;
const cachedVersion = tools.find(mangledName, '1.0.0');
const swiftInstallBase = path.join('/opt/swift', versionIdentifier);
if (cachedVersion) {
core.info("Using cached version!");
core.info('Using cached version!');
await io.cp(cachedVersion, swiftInstallBase, { recursive: true });
}
else {
Expand Down

0 comments on commit 5c05ca9

Please sign in to comment.