Skip to content

Commit a9347ab

Browse files
committed
aaaa
1 parent b0a6d2e commit a9347ab

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,21 @@ jobs:
2121
# - run: yarn build:lib
2222

2323
- name: generate-snake-game-from-github-contribution-grid
24+
id: snake-gif
2425
uses: Platane/snk@master
2526
with:
2627
github_user_name: platane
2728

29+
# - uses: crazy-max/ghaction-github-pages@v2.1.1
30+
# with:
31+
# target_branch: gh-pages
32+
# build_dir: packages/demo/dist
33+
# env:
34+
# GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN_GH_PAGES }}
35+
2836
- run: ls
2937
- run: ls -l github-contribution-grid-snake.gif
30-
- run: ls -l
38+
- run: ls -l ${{ steps.snake-gif.outputs.gif_out_path }}
3139
- run: ls
3240
- run: ls
3341
- run: ls

packages/action/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import { generateContributionSnake } from "./generateContributionSnake";
1212
console.log({ userName, gifOutPath }, buffer.length);
1313

1414
fs.writeFileSync(gifOutPath, buffer);
15+
16+
console.log(`::set-output name=gif_out_path::${gifOutPath}`);
1517
} catch (e) {
1618
core.setFailed(`Action failed with "${e.message}"`);
1719
}

0 commit comments

Comments
 (0)