-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (27 loc) · 886 Bytes
/
octokit.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: octokit-add-comment Workflow
on:
issues:
types: [opened]
permissions:
issues: write
pull-requests: write
jobs:
octokit-comment:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install octokit
run: npm install @octokit/rest
- name: see payload # this step is for debugging purposes only, so you can see the payload
run: echo "PAYLOAD:\n${PAYLOAD}\n"
env:
PAYLOAD: ${{ toJSON(github.event) }}
- name: List files in repository
run: ls -R
- name: Make a comment
run: node ./github_clients/octokit_client.js
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NUMBER: ${{ github.event.issue.number }}
REPO: ${{ github.repository }}