Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b0a6d2e94f | ||
|
|
250f0ba420 | ||
|
|
cfae6bb512 | ||
|
|
720b3bbf12 |
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@@ -26,6 +26,8 @@ jobs:
|
||||
github_user_name: platane
|
||||
|
||||
- run: ls
|
||||
- run: ls -l github-contribution-grid-snake.gif
|
||||
- run: ls -l
|
||||
- run: ls
|
||||
- run: ls
|
||||
- run: ls
|
||||
|
||||
@@ -16,7 +16,4 @@ RUN ( \
|
||||
&& rm -rf packages tsconfig.json package.json yarn.lock node_modules \
|
||||
)
|
||||
|
||||
CMD ["find", "/github/platane.aa"]
|
||||
|
||||
# CMD ["node", "./generate-snake-game-from-github-contribution-grid/packages/action/dist/index.js"]
|
||||
|
||||
CMD ["node", "/github/platane.aa/index.js"]
|
||||
|
||||
@@ -4,23 +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()));
|
||||
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}"`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user