Skip to content

Commit b0a6d2e

Browse files
committed
aaaa
1 parent 250f0ba commit b0a6d2e

File tree

2 files changed

+8
-19
lines changed

2 files changed

+8
-19
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ jobs:
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

packages/action/index.ts

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)