-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (28 loc) · 978 Bytes
/
command-help.yml
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
name: command-help
run-name: command-help-pr-${{ github.event.client_payload.github.payload.issue.number }}
on:
repository_dispatch:
types: [help-command]
permissions:
issues: write
pull-requests: write
contents: write
jobs:
help:
runs-on: ubuntu-latest
steps:
- name: Dump the client payload context
env:
PAYLOAD_CONTEXT: ${{ toJson(github.event.client_payload) }}
run: echo "$PAYLOAD_CONTEXT"
- name: Update comment
uses: peter-evans/create-or-update-comment@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.event.client_payload.github.payload.repository.full_name }}
comment-id: ${{ github.event.client_payload.github.payload.comment.id }}
body: |
> Command | Description
> ------------- | -----------
> /ql:publish | Builds and publishes the CodeQL query pack
reaction-type: hooray