Skip to content

Commit

Permalink
Upgrade ghcup in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonchinn178 committed Jul 14, 2023
1 parent 70ac1f7 commit 0c50b6d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13556,6 +13556,7 @@ async function choco(tool, version) {
async function ghcupBin(os) {
core.debug(`ghcupBin : ${os}`);
if (os === 'win32') {
await exec('ghcup', ['upgrade']);
return 'ghcup';
}
const cachedBin = tc.find('ghcup', opts_1.ghcup_version);
Expand Down
1 change: 1 addition & 0 deletions lib/installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ async function choco(tool, version) {
async function ghcupBin(os) {
core.debug(`ghcupBin : ${os}`);
if (os === 'win32') {
await exec('ghcup', ['upgrade']);
return 'ghcup';
}
const cachedBin = tc.find('ghcup', opts_1.ghcup_version);
Expand Down
1 change: 1 addition & 0 deletions src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ async function choco(tool: Tool, version: string): Promise<void> {
async function ghcupBin(os: OS): Promise<string> {
core.debug(`ghcupBin : ${os}`);
if (os === 'win32') {
await exec('ghcup', ['upgrade']);
return 'ghcup';
}
const cachedBin = tc.find('ghcup', ghcup_version);
Expand Down

0 comments on commit 0c50b6d

Please sign in to comment.