xref: /expo/.github/workflows/commentator.yml (revision cd4bd26b)
1name: Comments on GitHub issues
2
3on:
4  workflow_dispatch:
5    inputs:
6      payload:
7        description: 'Serialized and escaped JSON describing what and where to comment.'
8        required: true
9
10jobs:
11  comment:
12    runs-on: ubuntu-18.04
13    steps:
14      - name: Checkout a ref for the event
15        uses: actions/checkout@v2
16        with:
17          fetch-depth: 1
18      - name: Comment on GitHub issues as github-actions bot
19        run: bin/expotools commentator --payload "${{ github.event.inputs.payload }}"
20        env:
21          GITHUB_TOKEN: ${{ secrets.EXPO_BOT_GITHUB_TOKEN }}
22