forked from WCRP-CMIP/CMIP7-CVs
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (30 loc) · 954 Bytes
/
slash-command-dispatch.yaml
File metadata and controls
34 lines (30 loc) · 954 Bytes
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
# Dispatch of jobs triggered by slash commands
name: Slash command dispatch
on:
issue_comment:
types: [created]
jobs:
command-dispatch:
runs-on: ubuntu-latest
steps:
- name: Dispatch
uses: peter-evans/slash-command-dispatch@v5
with:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
issue-type: pull-request
event-type-suffix: -command
dispatch-type: workflow
commands: |
update-cmor-cvs-table
update-stac-json
static-args: |
repository=${{ github.repository }}
comment-id=${{ github.event.comment.id }}
- name: Update comment with error message
if: steps.scd.outputs.error-message
uses: peter-evans/create-or-update-comment@v5
with:
comment-id: ${{ github.event.comment.id }}
body: |
**Errors:**
${{ steps.scd.outputs.error-message }}