Skip to content

Commit da72d3e

Browse files
committed
Add rehash for version already exsit
1 parent 1aec2b3 commit da72d3e

File tree

4 files changed

+23
-1
lines changed

4 files changed

+23
-1
lines changed

dist/index.js

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ async function installSwift(options = {}) {
3333
core.startGroup('Install swift');
3434

3535
await swiftenv.install(options);
36+
await swiftenv.rehash(options);
3637

3738
core.endGroup();
3839
}

swiftenv.mjs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,13 @@ export async function install(options = {}) {
1313

1414
await exec.exec(commandLine)
1515
}
16+
17+
export async function rehash(options = {}) {
18+
let commandLine = 'swiftenv rehash';
19+
20+
if (options['debug']) {
21+
commandLine += ' --verbose';
22+
}
23+
24+
await exec.exec(commandLine)
25+
}

0 commit comments

Comments
 (0)