Skip to content

Commit

Permalink
Merge branch 'master' into sql_partition_aware
Browse files Browse the repository at this point in the history
  • Loading branch information
akeles85 committed Mar 30, 2023
2 parents f63e7c1 + 12092b2 commit 142c5a3
Show file tree
Hide file tree
Showing 53 changed files with 2,071 additions and 220 deletions.
32 changes: 32 additions & 0 deletions .github/actions/test-membership/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#
# Action: Test Membership
#
# Tests whether a member name is part of an organization.
#
# copied and adapted from https://github.com/hazelcast/hazelcast-tpm/blob/main/membership/action.yaml
#

name: Test Membership
inputs:
organization-name:
required: true
member-name:
required: true
token:
required: true
outputs:
is-member:
description: "Whether the member name is a member of the organization"
value: ${{ steps.test-membership.outputs.is-member }}
runs:
using: "composite"
steps:
- id: test-membership
shell: bash
run: |
response=$(curl -v -H "Authorization: token ${{ inputs.token }}" --write-out '%{http_code}' --silent --output /dev/null "https://api.github.com/orgs/${{ inputs.organization-name }}/memberships/${{ inputs.member-name }}")
if [[ "$response" -ne 200 ]] ; then
echo "is-member=false" >> $GITHUB_OUTPUT
else
echo "is-member=true" >> $GITHUB_OUTPUT
fi

0 comments on commit 142c5a3

Please sign in to comment.