Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0c50b6d

Browse files
committedJul 14, 2023
Upgrade ghcup in windows
1 parent 70ac1f7 commit 0c50b6d

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed
 

‎dist/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -13556,6 +13556,7 @@ async function choco(tool, version) {
1355613556
async function ghcupBin(os) {
1355713557
core.debug(`ghcupBin : ${os}`);
1355813558
if (os === 'win32') {
13559+
await exec('ghcup', ['upgrade']);
1355913560
return 'ghcup';
1356013561
}
1356113562
const cachedBin = tc.find('ghcup', opts_1.ghcup_version);

‎lib/installer.js

+1
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ async function choco(tool, version) {
275275
async function ghcupBin(os) {
276276
core.debug(`ghcupBin : ${os}`);
277277
if (os === 'win32') {
278+
await exec('ghcup', ['upgrade']);
278279
return 'ghcup';
279280
}
280281
const cachedBin = tc.find('ghcup', opts_1.ghcup_version);

‎src/installer.ts

+1
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,7 @@ async function choco(tool: Tool, version: string): Promise<void> {
306306
async function ghcupBin(os: OS): Promise<string> {
307307
core.debug(`ghcupBin : ${os}`);
308308
if (os === 'win32') {
309+
await exec('ghcup', ['upgrade']);
309310
return 'ghcup';
310311
}
311312
const cachedBin = tc.find('ghcup', ghcup_version);

0 commit comments

Comments
 (0)
Please sign in to comment.