File tree Expand file tree Collapse file tree 2 files changed +8
-19
lines changed
Expand file tree Collapse file tree 2 files changed +8
-19
lines changed Original file line number Diff line number Diff line change 2626 github_user_name : platane
2727
2828 - run : ls
29- - run : ls
30- - run : ls
29+ - run : ls -l github-contribution-grid-snake.gif
30+ - run : ls -l
3131 - run : ls
3232 - run : ls
3333 - run : ls
Original file line number Diff line number Diff line change @@ -4,25 +4,14 @@ import { generateContributionSnake } from "./generateContributionSnake";
44
55( async ( ) => {
66 try {
7- console . log ( "argv" , process . argv ) ;
7+ const userName = core . getInput ( "github_user_name" ) ;
8+ const gifOutPath = core . getInput ( "gif_out_path" ) ;
89
9- console . log ( core . getInput ( "user_name" ) ) ;
10- console . log ( core . getInput ( "gif_out_path" ) ) ;
11- console . log ( "--" ) ;
12- console . log ( "--" ) ;
13- console . log ( process . cwd ( ) ) ;
14- console . log ( "--" ) ;
15- console . log ( fs . readdirSync ( process . cwd ( ) ) ) ;
16- console . log ( "--" ) ;
17- console . log ( "--" ) ;
18- console . log ( process . env . GITHUB_WORKSPACE ) ;
19- console . log ( "--" ) ;
20- console . log ( fs . readdirSync ( process . cwd ( ) ) ) ;
21- console . log ( "--" ) ;
22- console . log ( process . env ) ;
10+ const buffer = await generateContributionSnake ( userName ) ;
2311
24- const buffer = await generateContributionSnake ( core . getInput ( "user_name" ) ) ;
25- fs . writeFileSync ( core . getInput ( "gif_out_path" ) , buffer ) ;
12+ console . log ( { userName, gifOutPath } , buffer . length ) ;
13+
14+ fs . writeFileSync ( gifOutPath , buffer ) ;
2615 } catch ( e ) {
2716 core . setFailed ( `Action failed with "${ e . message } "` ) ;
2817 }
You can’t perform that action at this time.
0 commit comments