name: Slash Command Dispatch
on:
  issue_comment:
    types: [created]

jobs:
  slashCommandDispatch:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - name: Slash Command Dispatch
        uses: cloudposse/actions/github/slash-command-dispatch@0.9.0
        with:
          token: ${{ secrets.GITHUB_BOT_TOKEN }}
          reaction-token: ${{ secrets.GITHUB_TOKEN }}
          repository: cloudposse/actions
          commands: rebuild-readme
          permission: none
          issue-type: pull-request
