issue_response.yml

 1name: Issue Response
 2
 3on:
 4  schedule:
 5    - cron: "0 12 * * 2"
 6  workflow_dispatch:
 7
 8jobs:
 9  issue-response:
10    runs-on: ubuntu-latest
11
12    steps:
13      - uses: actions/checkout@v4
14
15      - uses: pnpm/action-setup@v4
16        with:
17          version: 9
18
19      - name: Setup Node
20        uses: actions/setup-node@v4
21        with:
22          node-version: "20"
23          cache: "pnpm"
24          cache-dependency-path: "script/issues_needing_comments/pnpm-lock.yaml"
25
26      - run: pnpm install --dir script/issues_needing_comments
27
28      - name: Run Issue Response Script
29        run: pnpm run --dir script/issues_needing_comments ts-node main.ts
30        env:
31          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32          SLACK_ISSUE_RESPONSE_WEBHOOK_URL: ${{ secrets.SLACK_ISSUE_RESPONSE_WEBHOOK_URL }}