This repository was archived by the owner on Jul 3, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -6683,12 +6683,28 @@ const core = __nccwpck_require__(2186);
6683
6683
const tc = __nccwpck_require__ ( 7784 ) ;
6684
6684
6685
6685
( async ( ) => {
6686
- const url =
6687
- "https://github.com/koki-develop/qiita-cli/releases/download/v0.1.0/qiita_Linux_x86_64.tar.gz" ;
6686
+ const version = ( ( ) => {
6687
+ const version = "0.1.0" ; // TODO: get from input
6688
+ if ( ! version . startsWith ( "v" ) ) {
6689
+ return `v${ version } ` ;
6690
+ }
6691
+ } ) ( ) ;
6692
+ core . info ( `version: ${ version } ` ) ;
6693
+
6694
+ const platform = process . platform ;
6695
+ const arch = process . arch ;
6696
+ core . info ( `platform: ${ platform } ` ) ;
6697
+ core . info ( `arch: ${ arch } ` ) ;
6698
+
6699
+ core . info ( "Downloading..." ) ;
6700
+ const url = `https://github.com/koki-develop/qiita-cli/releases/download/${ version } /qiita_Linux_x86_64.tar.gz` ;
6688
6701
const cliPath = await tc . downloadTool ( url ) ;
6702
+
6703
+ core . info ( "Installing..." ) ;
6689
6704
const extractedPath = await tc . extractTar ( cliPath ) ;
6690
6705
const binPath = await tc . cacheDir ( extractedPath , "qiita" , "0.1.0" ) ;
6691
6706
core . addPath ( binPath ) ;
6707
+ core . info ( "Installed." ) ;
6692
6708
} ) ( ) . catch ( ( err ) => {
6693
6709
core . setFailed ( err . message ) ;
6694
6710
} ) ;
You can’t perform that action at this time.
0 commit comments