We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8061d6 commit a001946Copy full SHA for a001946
1 file changed
.github/workflows/release.yml
@@ -224,10 +224,13 @@ jobs:
224
github-token: ${{ secrets.CLERK_COOKIE_PAT }}
225
script: |
226
try {
227
- await github.rest.orgs.checkMembershipForUser({
+ const { data } = await github.rest.orgs.getMembershipForUser({
228
org: 'clerk',
229
username: context.actor
230
});
231
+ if (data.state !== 'active') {
232
+ core.setFailed(`@${context.actor} is not an active member of the Clerk organization`);
233
+ }
234
} catch (e) {
235
core.setFailed(`@${context.actor} is not a member of the Clerk organization`);
236
}
0 commit comments