-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (26 loc) · 836 Bytes
/
snake.yml
File metadata and controls
32 lines (26 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Generate Snake Game
on:
schedule: # Run at 12am every day
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Generate Snake game from commits
uses: Platane/snk@v2
with:
github_user_name: Icey-Python
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create output directory if it doesn't exist
run: mkdir -p dist
- name: Add the generated GIF to the repository
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
git add -A
git commit -m "Generate Snake game"
git push