-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (31 loc) · 975 Bytes
/
slash-command.yaml
File metadata and controls
33 lines (31 loc) · 975 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
name: Slash Command Dispatch
on:
workflow_call:
inputs:
head-sha:
description: 'Reference to the commit sha to run on'
required: true
type: string
jobs:
slashCommandDispatch:
runs-on: ubuntu-latest
steps:
- name: Slash Command Dispatch
id: scd
uses: peter-evans/slash-command-dispatch@v4
with:
token: ${{ secrets.GH_PAT }}
commands: |
postgis-check
dispatch-type: workflow
static-args: |
head-sha=${{ inputs.head-sha }}
issue-number=${{ github.event.issue.number }}
comment-creation-date=${{ github.event.comment.created_at }}
- name: Edit comment with error message
if: steps.scd.outputs.error-message
uses: peter-evans/create-or-update-comment@v4
with:
comment-id: ${{ github.event.comment.id }}
body: |
> ${{ steps.scd.outputs.error-message }}