Skip to content

Commit

Permalink
aaaa
Browse files Browse the repository at this point in the history
  • Loading branch information
Platane committed Jul 20, 2020
1 parent 250f0ba commit b0a6d2e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 19 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
github_user_name: platane

- run: ls
- run: ls
- run: ls
- run: ls -l github-contribution-grid-snake.gif
- run: ls -l
- run: ls
- run: ls
- run: ls
23 changes: 6 additions & 17 deletions packages/action/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,14 @@ import { generateContributionSnake } from "./generateContributionSnake";

(async () => {
try {
console.log("argv", process.argv);
const userName = core.getInput("github_user_name");
const gifOutPath = core.getInput("gif_out_path");

console.log(core.getInput("user_name"));
console.log(core.getInput("gif_out_path"));
console.log("--");
console.log("--");
console.log(process.cwd());
console.log("--");
console.log(fs.readdirSync(process.cwd()));
console.log("--");
console.log("--");
console.log(process.env.GITHUB_WORKSPACE);
console.log("--");
console.log(fs.readdirSync(process.cwd()));
console.log("--");
console.log(process.env);
const buffer = await generateContributionSnake(userName);

const buffer = await generateContributionSnake(core.getInput("user_name"));
fs.writeFileSync(core.getInput("gif_out_path"), buffer);
console.log({ userName, gifOutPath }, buffer.length);

fs.writeFileSync(gifOutPath, buffer);
} catch (e) {
core.setFailed(`Action failed with "${e.message}"`);
}
Expand Down

0 comments on commit b0a6d2e

Please sign in to comment.