Skip to content

Commit 0495b44

Browse files
committed
Update workflow
1 parent d09e9c6 commit 0495b44

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/slash-command-dispatch.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626

2727
# Advanced JSON configuration
2828
- name: Slash Command Dispatch (JSON)
29+
id: scd
2930
uses: ./
3031
with:
3132
token: ${{ secrets.REPO_ACCESS_TOKEN }}
@@ -102,6 +103,14 @@ jobs:
102103
}
103104
]
104105
106+
- name: Edit comment with error message
107+
if: steps.scd.outputs.error-message
108+
uses: peter-evans/create-or-update-comment@v1
109+
with:
110+
comment-id: ${{ github.event.comment.id }}
111+
body: |
112+
> ${{ steps.scd.outputs.error-message }}
113+
105114
# Advanced JSON configuration from file
106115
# (These commands do not do anything and are just a reference example)
107116
- name: Slash Command Dispatch (JSON file)

0 commit comments

Comments
 (0)