Skip to content

Owl Bot

Owl Bot #100

Workflow file for this run

name: Owl Bot
on:
discussion_comment:
types: [created]
jobs:
owl:
runs-on: ubuntu-latest
permissions:
discussions: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: pip install requests
- name: Generate Owl token
id: owl-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.OWL_APP_ID }}
private-key: ${{ secrets.OWL_PRIVATE_KEY }}
- name: Run Owl
env:
GITHUB_TOKEN: ${{ steps.owl-token.outputs.token }}
COMMENT_BODY: ${{ github.event.comment.body }}
COMMENT_ID: ${{ github.event.comment.node_id }}
COMMENT_AUTHOR: ${{ github.event.comment.user.login }}
DISCUSSION_ID: ${{ github.event.discussion.node_id }}
DISCUSSION_NUMBER: ${{ github.event.discussion.number }}
REPO: ${{ github.repository }}
run: python .github/scripts/owl_bot.py