forked from airbytehq/airbyte
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 1.04 KB
/
slash-commands.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
name: Slash Command Dispatch
on:
issue_comment:
types: [created]
jobs:
slashCommandDispatch:
runs-on: ubuntu-latest
steps:
- name: Get PR Ref
id: getref
run: |
echo "::set-output name=ref::$(curl ${{ github.event.issue.pull_request.url }} | jq -r '.head.ref')"
- name: Slash Command Dispatch
id: scd
uses: peter-evans/slash-command-dispatch@v2
with:
token: ${{ secrets.SLASH_COMMAND_PAT }}
commands: |
test
test-performance
publish
publish-cdk
gke-kube-test
static-args: |
ref=${{ steps.getref.outputs.ref }}
comment-id=${{ github.event.comment.id }}
dispatch-type: workflow
- name: Edit comment with error message
if: steps.scd.outputs.error-message
uses: peter-evans/create-or-update-comment@v1
with:
comment-id: ${{ github.event.comment.id }}
body: |
> Error: ${{ steps.scd.outputs.error-message }}