Use GitHub secret scanning or pre-push hook to prevent uploading internal branch to GitHub #38
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: Slash Command Dispatch | |
on: | |
issue_comment: | |
types: [created] | |
jobs: | |
slashCommandDispatch: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Slash Command Dispatch | |
id: scd | |
uses: peter-evans/slash-command-dispatch@v4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
reaction-token: ${{ secrets.SLANGBOT_PAT }} | |
issue-type: pull-request | |
commands: | | |
format | |
- name: Edit comment with error message | |
if: steps.scd.outputs.error-message | |
uses: peter-evans/create-or-update-comment@v4 | |
with: | |
token: ${{ secrets.SLANGBOT_PAT }} | |
comment-id: ${{ github.event.comment.id }} | |
body: | | |
> ${{ steps.scd.outputs.error-message }} |