Skip to content

answer-query

answer-query #12

Workflow file for this run

name: answer-query
on:
discussion:
types: [created, edited]
jobs:
answer-query:
name: answer-query
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install -r requirements.txt
- name: Post response
shell: bash
env:
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
DISCUSSION_ID: ${{ github.event.discussion.node_id }}
run: |
echo "$APP_PRIVATE_KEY" > ./key.pem
python scripts/comment-on-discussion.py