Skip to content

Commit

Permalink
Fix benchmarks please contributor check (#479)
Browse files Browse the repository at this point in the history
  • Loading branch information
coolreader18 authored Oct 26, 2023
1 parent 6eff34b commit 3a1be08
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ jobs:
run: echo "1" | sudo tee /sys/devices/system/cpu/cpufreq/boost

- name: Check membership
if: ${{ env.PR_NUMBER }}
if: ${{ github.event_name == 'issue_comment' }}
env:
COMMENT_AUTHOR: ${{ github.event.comment.user.login }}
run: |
if [[ $(gh api --paginate /orgs/{owner}/members --jq 'any(.login == env.GITHUB_ACTOR)') != true ]]; then
if [[ $(gh api --paginate /orgs/{owner}/members --jq 'any(.login == env.COMMENT_AUTHOR)') != true ]]; then
gh pr comment $PR_NUMBER -b "Sorry, you don't have permission to run benchmarks."
exit 1
fi
Expand Down

1 comment on commit 3a1be08

@github-actions
Copy link

@github-actions github-actions bot commented on 3a1be08 Oct 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmarking failed. Please check the workflow run for details.

Please sign in to comment.