Skip to content

Commit

Permalink
Update blank.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxiunique committed Mar 27, 2024
1 parent 2a14d02 commit 0c51dfb
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions .github/workflows/blank.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,33 @@
name: Generate Datas
name: profile snake svg

on:
schedule: # execute every 12 hours
- cron: "* */12 * * *"
schedule:
- cron: "0 */24 * * *"

workflow_dispatch:

push:
branches:
- master

jobs:
build:
name: Jobs to update datas
generate:
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
# Snake Animation
- uses: Platane/snk@master
id: snake-gif
- name: generate svg
uses: Platane/snk/svg-only@v3
with:
github_user_name: xiaoxiunique
svg_out_path: dist/github-contribution-grid-snake.svg
outputs: |
dist/github-snake.svg
dist/github-snake-dark.svg?palette=github-dark
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: crazy-max/ghaction-github-pages@v2.1.3
- name: push branch
uses: crazy-max/ghaction-github-pages@v3.1.0
with:
target_branch: output
build_dir: dist
Expand Down

0 comments on commit 0c51dfb

Please sign in to comment.