Skip to content

Commit

Permalink
chore: Only MEMBER and OWNER can package with comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
yanguoyu committed Mar 9, 2024
1 parent d5cfd42 commit 01066b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/package_for_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ name: Package Neuron for Test

on:
issue_comment:
types: [created, edited]
types: [created]
push:

jobs:
packaging:
if: ${{ (github.event_name == 'issue_comment' && github.event.issue.pull_request && startsWith(github.event.comment.body, '/package')) || github.event_name == 'push' }}
if: ${{ (github.event_name == 'issue_comment' && github.event.issue.pull_request && startsWith(github.event.comment.body, '/package') && contains(fromJSON('["MEMBER", "OWNER"]'), (github.event.comment.author_association))) || github.event_name == 'push' }}

strategy:
matrix:
Expand Down

0 comments on commit 01066b8

Please sign in to comment.