35 lines
No EOL
755 B
YAML
35 lines
No EOL
755 B
YAML
name: Generate Snake
|
|
|
|
on:
|
|
schedule:
|
|
# Runs every 12 hours
|
|
- cron: "0 */12 * * *"
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
generate:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
|
|
steps:
|
|
- name: Generate Snake
|
|
uses: Platane/snk/svg-only@v3
|
|
with:
|
|
github_user_name: developtheweb
|
|
outputs: |
|
|
dist/github-contribution-grid-snake.svg
|
|
dist/github-contribution-grid-snake-dark.svg?palette=github-dark
|
|
|
|
- name: Push to output branch
|
|
uses: crazy-max/ghaction-github-pages@v4
|
|
with:
|
|
target_branch: output
|
|
build_dir: dist
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |