File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -6106,10 +6106,14 @@ async function getGhCli(version) {
6106
6106
}
6107
6107
6108
6108
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 } ` ) ;
6112
6109
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 } ` ) ;
6113
6117
try {
6114
6118
const downloadPath = await _actions_tool_cache__WEBPACK_IMPORTED_MODULE_1__ . downloadTool ( downloadUrl ) ;
6115
6119
const extractedPath = await _actions_tool_cache__WEBPACK_IMPORTED_MODULE_1__ . extractTar ( downloadPath ) ;
@@ -6119,7 +6123,6 @@ async function downloadGhCli(version) {
6119
6123
throw err ;
6120
6124
}
6121
6125
}
6122
-
6123
6126
run ( ) ;
6124
6127
6125
6128
} ) ( ) ;
You can’t perform that action at this time.
0 commit comments