-
Notifications
You must be signed in to change notification settings - Fork 384
42 lines (36 loc) · 1.02 KB
/
help-command.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
33
34
35
36
37
38
39
40
41
42
name: Show Help for Commands
on:
push:
branches:
- "**" # Trigger on all branches, including feature branches
issue_comment:
types: [created]
workflow_dispatch:
inputs:
issue-number:
description: 'PR/Issue number to post the help comment to'
required: true
type: number
permissions:
issues: write
pull-requests: write
jobs:
debug:
uses: ./.github/workflows/debug-workflow.yml
with:
debug_enabled: false # Will still run if vars.DEBUG_WORKFLOW is true
show-help:
if: |
github.event_name == 'workflow_dispatch' ||
(github.event_name == 'issue_comment' &&
github.event.issue.pull_request &&
github.event.comment.body == '/help')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout
- name: Process Help Command
uses: ./.github/actions/help-command
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.inputs.issue-number }}