添加 .gitea/workflows/snk.yaml
This commit is contained in:
28
.gitea/workflows/snk.yaml
Normal file
28
.gitea/workflows/snk.yaml
Normal file
@@ -0,0 +1,28 @@
|
||||
name: Generate Snake
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 0 * * *"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2.3.4
|
||||
|
||||
- name: Generate Snake
|
||||
uses: Bennett/snk@master
|
||||
id: snake-gif
|
||||
with:
|
||||
github_user_name: ${{ github.repository_owner }}
|
||||
gif_out_path: ./assets/github-contribution-grid-snake.gif
|
||||
svg_out_path: ./assets/github-contribution-grid-snake.svg
|
||||
|
||||
- name: Push to GitHub
|
||||
uses: Bennett/add-and-commit@v7.2.1
|
||||
with:
|
||||
branch: main
|
||||
message: 'Generate Contribution Snake'
|
||||
Reference in New Issue
Block a user