This github action lets you play games of tic-tac-toe with a bot in the issue comments of your repository.
Here's an example workflow that uses this action. Detailed explanation are given in the following sections:
name: "TEST"
on:
issue_comment:
types: [created]
permissions: write-all
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.x
- run: npm install
- uses: ./
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
The action should be triggered in the comments section of an issue. To start a brand new game, type "play tic-taction-toe".
After the game board is displayed, choose a cell number to make your move using "tic-taction-toe >>{cell number}<<".
The usual rules apply for a normal game of tic-tac-toe.
on:
issue_comment:
types: [created]
At the minimum your workflow must set the following permissions:
permissions:
issues: write