Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
devchenyan committed Mar 12, 2024
2 parents 295601d + f94bb2a commit 1e55119
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 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('["OWNER", "COLLABORATOR"]'), github.event.comment.author_association)) || github.event_name == 'push' }}

strategy:
matrix:
Expand All @@ -20,6 +20,10 @@ jobs:

runs-on: ${{ matrix.os }}

permissions:
contents: read
pull-requests: read

name: ${{ matrix.os }}(Node.js ${{ matrix.node }})

env:
Expand Down Expand Up @@ -208,6 +212,9 @@ jobs:
needs: [packaging]
name: Append links to the Pull Request
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- name: Comment by push event
if: ${{ github.event_name == 'push' }}
Expand All @@ -230,6 +237,8 @@ jobs:
if: ${{ always() && needs.packaging.result == 'failure' }}
name: Append failed comment to the comment
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Comment by pull request comment event when package failed
if: ${{ github.event_name == 'issue_comment' }}
Expand Down

1 comment on commit 1e55119

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Packaging for test is done in 8245517576

Please sign in to comment.