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
22 changes: 21 additions & 1 deletion .github/workflows/pr-builder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,34 @@ name: PR builder is just a magic
on:
pull_request:
branches:
- master
- 'master'

jobs:
check_for_membership:
runs-on: ubuntu-latest
name: Check PR author membership
outputs:
check-result: ${{ steps.composite.outputs.check-result }}
steps:
- name: Action for membership check
id: composite
uses: hazelcast/hazelcast-tpm/membership@main
with:
organization-name: 'hazelcast'
member-name: ${{ github.actor }}
token: ${{ secrets.GH_TOKEN }}

build:
# using ubicloud instead of "standard" ubuntu-latest fixes issue with members not being able to connect via multicast
runs-on: ubicloud-standard-8
needs: check_for_membership

steps:
- name: Detect untrusted community PR
if: ${{ needs.check_for_membership.outputs.check-result == 'false' }}
run: |
echo "::error::ERROR: Untrusted external PR. Must be reviewed and executed by Hazelcast" 1>&2;
exit 1
- name: Get all the letters, words and paragraphs needed for the spell!
uses: actions/checkout@v4
- name: Setup JDK
Expand Down