separate to two jobs and staging #93
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |