mirror of
https://github.com/chenasraf/DefinitelyTyped-tools.git
synced 2026-05-18 01:49:03 +00:00
Replace magic comment with workflow_dispatch
This commit is contained in:
9
.github/workflows/deploy.yml
vendored
9
.github/workflows/deploy.yml
vendored
@@ -1,16 +1,9 @@
|
||||
on:
|
||||
issue_comment:
|
||||
types: [created]
|
||||
workflow_dispatch: {}
|
||||
repository_dispatch:
|
||||
types: [published]
|
||||
jobs:
|
||||
deploy:
|
||||
if: |
|
||||
github.event_name == 'repository_dispatch' ||
|
||||
github.event_name == 'issue_comment'
|
||||
&& github.event.issue.number == 1
|
||||
&& (github.actor == 'andrewbranch' || github.actor == 'sandersn')
|
||||
&& startsWith(github.event.comment.body, '/deploy publisher')
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
Reference in New Issue
Block a user