Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cfae6bb512 | ||
|
|
720b3bbf12 | ||
|
|
cb4016eda8 | ||
|
|
1a73179465 | ||
|
|
e62d5a56e4 | ||
|
|
6815912b18 | ||
|
|
c78ef253a1 |
3
.github/workflows/main.yml
vendored
3
.github/workflows/main.yml
vendored
@@ -27,3 +27,6 @@ jobs:
|
||||
|
||||
- run: ls
|
||||
- run: ls
|
||||
- run: ls
|
||||
- run: ls
|
||||
- run: ls
|
||||
|
||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -2,4 +2,5 @@ node_modules
|
||||
npm-debug.log*
|
||||
yarn-error.log*
|
||||
dist
|
||||
build
|
||||
build
|
||||
out.gif
|
||||
19
Dockerfile
19
Dockerfile
@@ -4,13 +4,16 @@ RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends gifsicle graphicsmagick \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY tsconfig.json package.json yarn.lock ./platane-aa/
|
||||
COPY packages ./platane-aa/packages/
|
||||
COPY tsconfig.json package.json yarn.lock /github/platane.aa/
|
||||
COPY packages /github/platane.aa/packages
|
||||
|
||||
RUN ( cd ./platane-aa ; yarn install --frozen-lockfile )
|
||||
|
||||
RUN ( cd ./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"]
|
||||
|
||||
@@ -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);
|
||||
|
||||
1
packages/gif-creator/.gitignore
vendored
1
packages/gif-creator/.gitignore
vendored
@@ -1 +0,0 @@
|
||||
out.gif
|
||||
Reference in New Issue
Block a user