Skip to content

Commit 1b7e5e4

Browse files
committed
check for membership later, since the check seems to not work
1 parent a351921 commit 1b7e5e4

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/diff.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,18 @@ on:
66
jobs:
77
generate:
88
name: |
9-
Generate matrix. ${{ github.event.comment.user.name }}: ${{ github.event.comment.author_association}}
9+
Generate matrix.
1010
runs-on: ubuntu-latest
1111
outputs:
1212
diffs: ${{ steps.regress-ci.outputs.diffs }}
13-
if: github.event.issue.pull_request && (github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER') && (contains(toJson(github.event.comment.body), '\n/ci') || startsWith(github.event.comment.body, '/ci'))
13+
if: contains(toJson(github.event.comment.body), '\n/ci') || startsWith(github.event.comment.body, '/ci')
1414
steps:
15+
- name: Is member
16+
run: |
17+
if [[ "${{ github.event.comment.author_association }}" != "MEMBER" && "${{ github.event.comment.author_association }}" != "OWNER" ]]; then
18+
exit 1
19+
fi
20+
1521
- uses: actions/checkout@v4
1622

1723
- uses: dtolnay/rust-toolchain@master

0 commit comments

Comments
 (0)