Fixes: #7099 PRs from maintainers will work as normal - PRs from the community can now be triggered with command dispatch events
58 lines
1.8 KiB
YAML
58 lines
1.8 KiB
YAML
name: Command Dispatch for PR events
|
|
on:
|
|
issue_comment:
|
|
types: [created, edited]
|
|
|
|
jobs:
|
|
command-dispatch-for-testing:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Run Build
|
|
uses: peter-evans/slash-command-dispatch@v2
|
|
with:
|
|
token: ${{ secrets.PULUMI_BOT_TOKEN }}
|
|
reaction-token: ${{ secrets.GITHUB_TOKEN }}
|
|
commands: run-acceptance-tests
|
|
permission: write
|
|
issue-type: pull-request
|
|
repository: pulumi/pulumi
|
|
command-dispatch-for-docs-generation:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Run Build
|
|
uses: peter-evans/slash-command-dispatch@v2
|
|
with:
|
|
token: ${{ secrets.PULUMI_BOT_TOKEN }}
|
|
reaction-token: ${{ secrets.GITHUB_TOKEN }}
|
|
commands: run-docs-gen
|
|
permission: write
|
|
issue-type: pull-request
|
|
repository: pulumi/pulumi
|
|
command-dispatch-for-downstream-codegen:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Run Build
|
|
uses: peter-evans/slash-command-dispatch@v2
|
|
with:
|
|
token: ${{ secrets.PULUMI_BOT_TOKEN }}
|
|
reaction-token: ${{ secrets.GITHUB_TOKEN }}
|
|
commands: run-codegen
|
|
permission: write
|
|
issue-type: pull-request
|
|
repository: pulumi/pulumi
|
|
auto-rebase-command:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Run Build
|
|
uses: peter-evans/slash-command-dispatch@v2
|
|
with:
|
|
token: ${{ secrets.PULUMI_BOT_TOKEN }}
|
|
reaction-token: ${{ secrets.GITHUB_TOKEN }}
|
|
commands: auto-rebase
|
|
permission: write
|
|
issue-type: pull-request
|
|
repository: pulumi/pulumi
|