Skip to content

Commit 10517f9

Browse files
committed
add org check to workflow
1 parent 2e15519 commit 10517f9

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/ci.yml

+13
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,19 @@ jobs:
44
build:
55
runs-on: ubuntu-latest
66
steps:
7+
- name: Check if organization member
8+
id: check_org_member
9+
uses: Mind-Sports-Games/check-org-member@v1.1.0
10+
with:
11+
username: ${{ github.actor }}
12+
token: ${{ secrets.GITHUB_TOKEN }}
13+
- name: Check Failed
14+
if: ${{ steps.check_org_member.outputs.result == 'false' }}
15+
run: |
16+
echo User Does Not Belong to Mind-Sports-Games
17+
exit 1
18+
- name: Check Passed
19+
run: echo The actor is an organization member
720
- uses: actions/checkout@v4
821
- uses: actions/setup-node@v4
922
with:

0 commit comments

Comments
 (0)