Fixes : Workflow error on issue comment (#2958)

This commit is contained in:
Mr. RB 2025-06-18 23:48:43 +05:30 committed by GitHub
parent e854725202
commit f122c905dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 24 additions and 12 deletions

View file

@ -1,4 +1,4 @@
# This workflow is triggered by a comment on an issue or PR with the text ".build-cli"
# This workflow is triggered by a comment on PR with the text ".build-cli"
on:
issue_comment:
types: [created]
@ -22,14 +22,17 @@ concurrency:
jobs:
trigger-on-command:
if: >
github.event_name == 'workflow_dispatch' ||
(github.event.issue.pull_request && contains(github.event.comment.body, ".build-cli"))
name: Trigger on ".build-cli" PR comment
runs-on: ubuntu-latest
outputs:
continue: ${{ steps.command.outputs.continue || github.event_name == 'workflow_dispatch' }}
continue: 'true'
pr_number: ${{ steps.command.outputs.issue_number || github.event.inputs.pr_number }}
head_sha: ${{ steps.set_head_sha.outputs.head_sha || github.sha }}
steps:
- if: ${{ github.event_name == 'issue_comment' }}
- name: Run command action
uses: github/command@v1.3.0
id: command
with: