Go right #319
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |