Skip to content

Commit a001946

Browse files
fix(ci): Fix membership check for private members (#7993)
1 parent a8061d6 commit a001946

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,13 @@ jobs:
224224
github-token: ${{ secrets.CLERK_COOKIE_PAT }}
225225
script: |
226226
try {
227-
await github.rest.orgs.checkMembershipForUser({
227+
const { data } = await github.rest.orgs.getMembershipForUser({
228228
org: 'clerk',
229229
username: context.actor
230230
});
231+
if (data.state !== 'active') {
232+
core.setFailed(`@${context.actor} is not an active member of the Clerk organization`);
233+
}
231234
} catch (e) {
232235
core.setFailed(`@${context.actor} is not a member of the Clerk organization`);
233236
}

0 commit comments

Comments
 (0)