Skip to content

gomoku|drop|black|C6 #485

gomoku|drop|black|C6

gomoku|drop|black|C6 #485

Workflow file for this run

name: "Gomoku"
on:
issues:
types: [opened]
jobs:
move:
runs-on: ubuntu-latest
if: startsWith(github.event.issue.title, 'gomoku|')
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Cache PIP
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-py38
- name: Install Dependencies
run: |
pip install -r requirements.txt
- name: Play
env:
REPO: ${{ github.repository }}
ISSUE_TITLE: ${{ github.event.issue.title }}
PLAYER: ${{ github.event.issue.user.login }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
python -m chess.runner
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}