Skip to content

Commit

Permalink
only check membership for comment
Browse files Browse the repository at this point in the history
  • Loading branch information
adu-crypto committed Jul 15, 2022
1 parent 7639195 commit f935a0d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/sims.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,17 @@ jobs:
username: ${{ github.actor }}
organization: crypto-org-chain
token: ${{ secrets.GITHUB_TOKEN }}
if: github.event_name == 'issue_comment'
- name: Comment PR for authentication failure
uses: crypto-org-chain/actions-pull-request-add-comment@master
if: steps.checkMember.outputs.result == 'false'
if: (steps.checkMember.outputs.result == 'false') && (github.event_name == 'issue_comment')
with:
message: |
Sorry only crypto-org-chain member could run simulations by '/runsim'.
If you are a crypto-org-chain member, please set your membership visibility to `public` in this [page](https://github.com/orgs/crypto-org-chain/people).
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Fail and exit the job if authentication failed
if: steps.checkMember.outputs.result == 'false'
if: (steps.checkMember.outputs.result == 'false') && (github.event_name == 'issue_comment')
run: exit 1
- name: Comment PR for Sim test started
uses: allthatjazzleo/actions-pull-request-add-comment@master
Expand Down

0 comments on commit f935a0d

Please sign in to comment.