Skip to content

Commit

Permalink
test sims
Browse files Browse the repository at this point in the history
  • Loading branch information
adu-crypto committed Sep 19, 2022
1 parent a479b8a commit 86fa4fa
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/sims.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,30 +31,30 @@ jobs:
outputs:
valid: ${{ steps.setValid.outputs.valid }}
steps:
- uses: tspascoal/[email protected]
id: checkMember
if: github.event_name == 'issue_comment'
with:
username: ${{ github.actor }}
team: 'cronos-dev'
GITHUB_TOKEN: ${{ secrets.ORG_READ_BOT_PAT }}
- name: Comment PR for authentication failure
uses: crypto-org-chain/actions-pull-request-add-comment@master
if: (steps.checkMember.outputs.isTeamMember == 'false') && (github.event_name == 'issue_comment')
with:
message: |
Sorry only cronos-dev team member could run simulations by '/runsim'.
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - uses: tspascoal/[email protected]
# id: checkMember
# if: github.event_name == 'issue_comment'
# with:
# username: ${{ github.actor }}
# team: 'cronos-dev'
# GITHUB_TOKEN: ${{ secrets.ORG_READ_BOT_PAT }}
# - name: Comment PR for authentication failure
# uses: crypto-org-chain/actions-pull-request-add-comment@master
# if: (steps.checkMember.outputs.isTeamMember == 'false') && (github.event_name == 'issue_comment')
# with:
# message: |
# Sorry only cronos-dev team member could run simulations by '/runsim'.
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: set valid if it is push/pull_request event or check if it is triggered by team members with issue_comment
id: setValid
run: |
if [[ "${{ steps.checkMember.outputs.isTeamMember }}" == "true" ]]; then
# if [[ "${{ steps.checkMember.outputs.isTeamMember }}" == "true" ]]; then
# echo "::set-output name=valid::true"
# elif [[ "${{ github.event_name }}" == "push" || "${{ github.event_name }}" == "pull_request" ]]; then
echo "::set-output name=valid::true"
elif [[ "${{ github.event_name }}" == "push" || "${{ github.event_name }}" == "pull_request" ]]; then
echo "::set-output name=valid::true"
else
echo "::set-output name=valid::false"
fi
# else
# echo "::set-output name=valid::false"
# fi
build:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 86fa4fa

Please sign in to comment.