Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/membership-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: membership-test

on:
pull_request:
workflow_dispatch:

jobs:
check_for_membership:
runs-on: ubuntu-latest
permissions: write-all
name: Check membership of given user
outputs:
check-result: ${{ steps.composite.outputs.check-result }}
steps:
- name: Action for membership check
id: composite
uses: hazelcast/hazelcast-tpm/membership@main
with:
member-name: ${{ github.actor }}
token: ${{ secrets.GH_TOKEN }}


run-tests:
runs-on: ubuntu-latest
permissions: write-all
needs: check_for_membership
steps:
- run: echo "gh api repos/${GITHUB_REPOSITORY}/collaborators/JackPGreen"
- run: gh api "repos/${GITHUB_REPOSITORY}/collaborators/JackPGreen"
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
- run: echo hello-world
Loading