Compare commits

...

4 Commits

Author SHA1 Message Date
platane
cfae6bb512 aaaa 2020-07-20 09:30:49 +02:00
platane
720b3bbf12 aaaa 2020-07-20 09:24:09 +02:00
platane
cb4016eda8 aaaa 2020-07-20 09:23:12 +02:00
platane
1a73179465 aaaa 2020-07-20 09:03:42 +02:00
3 changed files with 14 additions and 7 deletions

View File

@@ -28,3 +28,5 @@ jobs:
- run: ls
- run: ls
- run: ls
- run: ls
- run: ls

View File

@@ -5,12 +5,15 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/*
COPY tsconfig.json package.json yarn.lock /github/platane.aa/
COPY packages /github/platane.aa/
COPY packages /github/platane.aa/packages
RUN ( cd /github/platane.aa/ ; yarn install --frozen-lockfile )
RUN ( cd /github/platane.aa/ ; yarn build:action )
CMD ["find", "/github"]
# CMD ["node", "./generate-snake-game-from-github-contribution-grid/packages/action/dist/index.js"]
RUN ( \
cd /github/platane.aa \
&& find . \
&& yarn install --frozen-lockfile \
&& yarn build:action \
&& mv packages/action/dist/* . \
&& rm -rf packages tsconfig.json package.json yarn.lock node_modules \
)
CMD ["node", "/github/platane.aa/index.js"]

View File

@@ -18,6 +18,8 @@ import { generateContributionSnake } from "./generateContributionSnake";
console.log(process.env.GITHUB_WORKSPACE);
console.log("--");
console.log(fs.readdirSync(process.cwd()));
console.log("--");
console.log(process.env);
const buffer = await generateContributionSnake(core.getInput("user_name"));
fs.writeFileSync(core.getInput("gif_out_path"), buffer);