mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-11-23 15:57:50 -05:00
Add command gh workflow allowing to use release command in comments (#1244)
This commit is contained in:
parent
2e45c7f4ab
commit
1a4cfa7f5e
1 changed files with 22 additions and 0 deletions
22
.github/workflows/commands.yml
vendored
Normal file
22
.github/workflows/commands.yml
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
name: Repo Commands
|
||||
|
||||
on:
|
||||
issue_comment: # Handle comment commands
|
||||
types: [created]
|
||||
pull_request: # Handle renamed PRs
|
||||
types: [edited]
|
||||
|
||||
jobs:
|
||||
comment-trigger:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v3
|
||||
- name: Run command handlers
|
||||
uses: PrismarineJS/prismarine-repo-actions@master
|
||||
with:
|
||||
# NOTE: You must specify a Personal Access Token (PAT) with repo access here. While you can use the default GITHUB_TOKEN, actions taken with it will not trigger other actions, so if you have a CI workflow, commits created by this action will not trigger it.
|
||||
token: ${{ secrets.PAT_PASSWORD }}
|
||||
# See `Options` section below for more info on these options
|
||||
install-command: npm install
|
||||
/fixlint.fix-command: npm run fix
|
Loading…
Reference in a new issue