Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add org check to workflow #109

Merged
Merged
Show file tree
Hide file tree
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
13 changes: 13 additions & 0 deletions .github/workflows/server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,19 @@ jobs:
openjdk14:
runs-on: ubuntu-latest
steps:
- name: Check if organization member
id: check_org_member
uses: Mind-Sports-Games/check-org-member@v1.1.0
with:
username: ${{ github.actor }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Check Failed
if: ${{ steps.check_org_member.outputs.result == 'false' }}
run: |
echo User Does Not Belong to Mind-Sports-Games
exit 1
- name: Check Passed
run: echo The actor is an organization member
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
Expand Down
25 changes: 19 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,22 @@ jobs:
openjdk13:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17.0.5
- run: sbt compile
- name: Check if organization member
id: check_org_member
uses: Mind-Sports-Games/check-org-member@v1.1.0
with:
username: ${{ github.actor }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Check Failed
if: ${{ steps.check_org_member.outputs.result == 'false' }}
run: |
echo User Does Not Belong to Mind-Sports-Games
exit 1
- name: Check Passed
run: echo The actor is an organization member
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17.0.5
- run: sbt compile