-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (31 loc) · 900 Bytes
/
main.yml
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
33
34
35
36
name: Game Input
on:
issues:
types:
- opened
permissions:
contents: write
issues: write
jobs:
follow-command:
if: contains(github.event.issue.labels.*.name, 'game-input')
runs-on: ubuntu-latest
steps:
- name: Get repository stats
run: echo "GAME_XP=$(curl -s https://api.github.com/repos/bahadir/bahadir | jq .stargazers_count)" >> $GITHUB_ENV
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Follow user command
env:
GAME_INPUT: ${{ github.event.issue.title }}
run: |
git config --local user.email "actions@github.com"
git config --local user.name "Github Actions"
git pull
rm data/map-*.png
go run main.go
git add -A
git commit -m "Follow user command"
git push
- uses: peter-evans/close-issue@v2