forked from sismo-core/app-store
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: run bot workflow only if organisation member
- Loading branch information
1 parent
2ce732e
commit f009c9d
Showing
1 changed file
with
6 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,18 +9,16 @@ jobs: | |
runs-on: ubuntu-latest | ||
if: contains(github.event.comment.body, '/create-app') | ||
steps: | ||
- name: Check if organization member | ||
- name: Check if sismo-core organisation member | ||
id: is_organization_member | ||
uses: jamessingleton/[email protected].1 | ||
uses: jamessingleton/[email protected].0 | ||
with: | ||
organization: sismo-core | ||
username: ${{ github.event.comment.user.login }} | ||
organization: "sismo-core" | ||
username: ${{ github.actor }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- if: steps.is_organization_member.outputs.result == false | ||
run: | | ||
echo "${{ github.actor }} does not belong to sismo-core" | ||
exit 1 | ||
- if: steps.is_organization_member.outputs.result != 'true' | ||
run: exit 1 | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|