Update README #3921
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update README | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Update this repo's README with recent activity | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: Platane/snk@v3 | |
with: | |
# github user name to read the contribution graph from (**required**) | |
# using action context var `github.repository_owner` or specified user | |
github_user_name: dkarakay | |
outputs: | | |
dist/github-snake.svg | |
dist/github-snake-dark.svg?palette=github-dark | |
dist/ocean.gif?color_snake=orange&color_dots=#bfd6f6,#8dbdff,#64a1f4,#4b91f1,#3c7dd9 | |
dist/halloween-dark.svg?color_snake=#9309e8&color_dots=#5b210c,#b15d2f,#ea8137,#e8a410,#fffae3 | |
dist/halloween.svg?color_snake=#9309e8&color_dots=#fffae3,#e8a410,#ea8137,#b15d2f,#5b210c | |
dist/christmas-dark.svg?color_snake=#e6dcb1&color_dots=#114f3e,#337862,#de3e4e,#db041a,#7e121d | |
dist/christmas.svg?color_snake=#e6dcb1&color_dots=#114f3e,#337862,#47a889,#db041a,#7e121d | |
env: | |
# a github token is required to fetch the contribution calendar from github API | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# push the content of <build_dir> to a branch | |
# the content will be available at https://raw.githubusercontent.com/<github_user>/<repository>/<target_branch>/<file> , or as github page | |
- name: push github-contribution-grid-snake.gif to the output branch | |
uses: crazy-max/ghaction-github-pages@v2.5.0 | |
with: | |
target_branch: output | |
build_dir: dist | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |