Fixes : Workflow error on issue comment (#2958)
This commit is contained in:
@@ -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:
|
on:
|
||||||
issue_comment:
|
issue_comment:
|
||||||
types: [created]
|
types: [created]
|
||||||
@@ -22,14 +22,17 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
trigger-on-command:
|
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
|
name: Trigger on ".build-cli" PR comment
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
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 }}
|
pr_number: ${{ steps.command.outputs.issue_number || github.event.inputs.pr_number }}
|
||||||
head_sha: ${{ steps.set_head_sha.outputs.head_sha || github.sha }}
|
head_sha: ${{ steps.set_head_sha.outputs.head_sha || github.sha }}
|
||||||
steps:
|
steps:
|
||||||
- if: ${{ github.event_name == 'issue_comment' }}
|
- name: Run command action
|
||||||
uses: github/command@v1.3.0
|
uses: github/command@v1.3.0
|
||||||
id: command
|
id: command
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# This workflow is triggered by a comment on an issue or PR with the text ".bundle-intel"
|
# This workflow is triggered by a comment on PR with the text ".bundle-intel"
|
||||||
# It bundles the Intel Desktop App, then creates a PR comment with a link to download the app.
|
# It bundles the Intel Desktop App, then creates a PR comment with a link to download the app.
|
||||||
|
|
||||||
on:
|
on:
|
||||||
@@ -24,15 +24,18 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
trigger-on-command:
|
trigger-on-command:
|
||||||
|
if: >
|
||||||
|
github.event_name == 'workflow_dispatch' ||
|
||||||
|
(github.event.issue.pull_request && contains(github.event.comment.body, ".bundle-intel"))
|
||||||
name: Trigger on ".bundle-intel" PR comment
|
name: Trigger on ".bundle-intel" PR comment
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
continue: ${{ steps.command.outputs.continue || github.event_name == 'workflow_dispatch' }}
|
continue: 'true'
|
||||||
# Cannot use github.event.pull_request.number since the trigger is 'issue_comment'
|
# Cannot use github.event.pull_request.number since the trigger is 'issue_comment'
|
||||||
pr_number: ${{ steps.command.outputs.issue_number || github.event.inputs.pr_number }}
|
pr_number: ${{ steps.command.outputs.issue_number || github.event.inputs.pr_number }}
|
||||||
head_sha: ${{ steps.set_head_sha.outputs.head_sha || github.sha }}
|
head_sha: ${{ steps.set_head_sha.outputs.head_sha || github.sha }}
|
||||||
steps:
|
steps:
|
||||||
- if: ${{ github.event_name == 'issue_comment' }}
|
- name: Run command action
|
||||||
uses: github/command@319d5236cc34ed2cb72a47c058a363db0b628ebe # pin@v1.3.0
|
uses: github/command@319d5236cc34ed2cb72a47c058a363db0b628ebe # pin@v1.3.0
|
||||||
id: command
|
id: command
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# This workflow is triggered by a comment on an issue or PR with the text ".bundle-windows"
|
# This workflow is triggered by a comment on PR with the text ".bundle-windows"
|
||||||
# It bundles the Windows Desktop App, then creates a PR comment with a link to download the app.
|
# It bundles the Windows Desktop App, then creates a PR comment with a link to download the app.
|
||||||
|
|
||||||
on:
|
on:
|
||||||
@@ -27,15 +27,18 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
trigger-on-command:
|
trigger-on-command:
|
||||||
|
if: >
|
||||||
|
github.event_name == 'workflow_dispatch' ||
|
||||||
|
(github.event.issue.pull_request && contains(github.event.comment.body, ".bundle-windows"))
|
||||||
name: Trigger on ".bundle-windows" PR comment
|
name: Trigger on ".bundle-windows" PR comment
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
continue: ${{ steps.command.outputs.continue || github.event_name == 'workflow_dispatch' }}
|
continue: 'true'
|
||||||
# Cannot use github.event.pull_request.number since the trigger is 'issue_comment'
|
# Cannot use github.event.pull_request.number since the trigger is 'issue_comment'
|
||||||
pr_number: ${{ steps.command.outputs.issue_number || github.event.inputs.pr_number }}
|
pr_number: ${{ steps.command.outputs.issue_number || github.event.inputs.pr_number }}
|
||||||
head_sha: ${{ steps.set_head_sha.outputs.head_sha || github.sha }}
|
head_sha: ${{ steps.set_head_sha.outputs.head_sha || github.sha }}
|
||||||
steps:
|
steps:
|
||||||
- if: ${{ github.event_name == 'issue_comment' }}
|
- name: Run command action
|
||||||
uses: github/command@319d5236cc34ed2cb72a47c058a363db0b628ebe # pin@v1.3.0
|
uses: github/command@319d5236cc34ed2cb72a47c058a363db0b628ebe # pin@v1.3.0
|
||||||
id: command
|
id: command
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# This workflow is triggered by a comment on an issue or PR with the text ".bundle"
|
# This workflow is triggered by a comment on PR with the text ".bundle"
|
||||||
# It bundles the ARM64 Desktop App, then creates a PR comment with a link to download the app.
|
# It bundles the ARM64 Desktop App, then creates a PR comment with a link to download the app.
|
||||||
|
|
||||||
on:
|
on:
|
||||||
@@ -24,10 +24,13 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
trigger-on-command:
|
trigger-on-command:
|
||||||
|
if: >
|
||||||
|
github.event_name == 'workflow_dispatch' ||
|
||||||
|
(github.event.issue.pull_request && contains(github.event.comment.body, ".bundle"))
|
||||||
name: Trigger on ".bundle" PR comment
|
name: Trigger on ".bundle" PR comment
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
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 }}
|
pr_number: ${{ steps.command.outputs.issue_number || github.event.inputs.pr_number }}
|
||||||
pr_sha: ${{ steps.get_pr_info.outputs.sha }}
|
pr_sha: ${{ steps.get_pr_info.outputs.sha }}
|
||||||
steps:
|
steps:
|
||||||
@@ -48,7 +51,7 @@ jobs:
|
|||||||
echo "Actor: ${ACTOR}"
|
echo "Actor: ${ACTOR}"
|
||||||
echo "Repository: ${REPOSITORY}"
|
echo "Repository: ${REPOSITORY}"
|
||||||
|
|
||||||
- if: ${{ github.event_name == 'issue_comment' }}
|
- name: Run command action
|
||||||
uses: github/command@319d5236cc34ed2cb72a47c058a363db0b628ebe # pin@v1.3.0
|
uses: github/command@319d5236cc34ed2cb72a47c058a363db0b628ebe # pin@v1.3.0
|
||||||
id: command
|
id: command
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user