fix: When read message #83
This file contains hidden or 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: Deploy Pull Request Dispatch | |
| on: | |
| issue_comment: | |
| types: [created] | |
| jobs: | |
| deploy-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check if user has write access | |
| uses: actions-cool/check-user-permission@main | |
| id: checkUser | |
| with: | |
| require: "write" | |
| - name: Trigger the deploy-pr-command workflow and add a reaction to the comment | |
| if: steps.checkUser.outputs.require-result == 'true' | |
| id: checkCommand | |
| uses: peter-evans/slash-command-dispatch@v4 | |
| with: | |
| commands: | | |
| deploy | |
| token: ${{ secrets.GITHUB_TOKEN }} |