Skip to content

connect4|drop|red|2 #233

connect4|drop|red|2

connect4|drop|red|2 #233

Workflow file for this run

name: "Connect4"
on:
workflow_dispatch:
issues:
types: [opened]
jobs:
move:
runs-on: ubuntu-latest
if: startsWith(github.event.issue.title, 'connect4|')
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
- name: Setup Gems
run: |
gem install octokit -N --silent
- name: Play
env:
REPOSITORY: ${{ github.repository }}
EVENT_ISSUE_NUMBER: ${{ github.event.issue.number }}
EVENT_ISSUE_TITLE: ${{ github.event.issue.title }}
EVENT_USER_LOGIN: ${{ github.event.issue.user.login }}
run: |
ruby <<- EORUBY
require './connect4/runner'
Connect4::Runner.new(
github_token: '${{ secrets.GITHUB_TOKEN }}',
issue_number: ENV.fetch('EVENT_ISSUE_NUMBER'),
issue_title: ENV.fetch('EVENT_ISSUE_TITLE'),
repository: ENV.fetch('REPOSITORY'),
user: ENV.fetch('EVENT_USER_LOGIN'),
).run
EORUBY