Use the git2 create to remove git dependency #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Chat Ops | |
on: | |
issue_comment: | |
types: [created] | |
jobs: | |
chatOpsDispatch: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Slash Command Dispatch | |
uses: peter-evans/slash-command-dispatch@v4 | |
id: scd | |
with: | |
token: ${{ secrets.CHAT_OPS }} | |
commands: | | |
fmt | |
issue-type: pull-request | |
- 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 }} |