Skip to content

Commit af38ce0

Browse files
committed
run build
1 parent eef2976 commit af38ce0

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

dist/index.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6106,10 +6106,14 @@ async function getGhCli(version) {
61066106
}
61076107

61086108
async function downloadGhCli(version) {
6109-
const toolDirectoryName = `gh_${version}_linux_amd64`;
6110-
const downloadUrl = `https://github.com/cli/cli/releases/download/v${version}/gh_${version}_linux_amd64.tar.gz`;
6111-
console.log(`downloading ${downloadUrl}`);
61126109

6110+
let architecture = 'amd64';
6111+
if (process.arch == 'arm64') {
6112+
architecture = 'arm64';
6113+
}
6114+
const toolDirectoryName = `gh_${version}_linux_${architecture}`;
6115+
const downloadUrl = `https://github.com/cli/cli/releases/download/v${version}/gh_${version}_linux_${architecture}.tar.gz`;
6116+
console.log(`downloading ${downloadUrl}`);
61136117
try {
61146118
const downloadPath = await _actions_tool_cache__WEBPACK_IMPORTED_MODULE_1__.downloadTool(downloadUrl);
61156119
const extractedPath = await _actions_tool_cache__WEBPACK_IMPORTED_MODULE_1__.extractTar(downloadPath);
@@ -6119,7 +6123,6 @@ async function downloadGhCli(version) {
61196123
throw err;
61206124
}
61216125
}
6122-
61236126
run();
61246127

61256128
})();

0 commit comments

Comments
 (0)