Skip to content

Commit 59d9ca8

Browse files
authored
Add GitHub Actions workflow for game updates
This workflow updates the Space Shooter game daily at midnight UTC and allows manual triggering.
1 parent bf06388 commit 59d9ca8

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/update-game.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Update Space Shooter Game
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *' # Daily at midnight UTC
6+
workflow_dispatch: # Allow manual trigger
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
update-game:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: czl9707/gh-space-shooter@v1
17+
with:
18+
github-token: ${{ secrets.GITHUB_TOKEN }}
19+
output-path: 'game.gif'
20+
strategy: 'random'

0 commit comments

Comments
 (0)