添加 .gitea/workflows/snk.yaml

This commit is contained in:
2025-03-25 10:31:26 +08:00
commit 4621a0609b

28
.gitea/workflows/snk.yaml Normal file
View 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'