Skip to content

Commit

Permalink
ci: fix PR action condition (openfoodfacts#10601)
Browse files Browse the repository at this point in the history
Yet another fix :'(
  • Loading branch information
alexgarel authored Jul 26, 2024
1 parent ea75732 commit ab5c441
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/pr_actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ jobs:
run_lint:
name: "On demand linting"
if: |
${{
github.event.issue.pull_request &&
github.event.comment.body == '/lint' &&
contains(fromJSON('["COLLABORATOR", "CONTRIBUTOR", "MEMBER", "OWNER"]'), github.event.comment.author_association)
}}
github.event.issue.pull_request &&
(github.event.comment.body == '/lint') &&
contains(fromJSON('["COLLABORATOR", "CONTRIBUTOR", "MEMBER", "OWNER"]'), github.event.comment.author_association)
runs-on: ubuntu-latest
steps:
- name: Get branch name
Expand Down Expand Up @@ -59,11 +57,9 @@ jobs:
update_test_results:
name: "On demand Update Tests Results"
if: |
${{
github.event.issue.pull_request &&
github.event.comment.body == '/update_tests_results' &&
contains(fromJSON('["COLLABORATOR", "CONTRIBUTOR", "MEMBER", "OWNER"]'), github.event.comment.author_association)
}}
github.event.issue.pull_request &&
(github.event.comment.body == '/update_tests_results') &&
contains(fromJSON('["COLLABORATOR", "CONTRIBUTOR", "MEMBER", "OWNER"]'), github.event.comment.author_association)
runs-on: ubuntu-latest
steps:
- name: Get branch name
Expand Down

0 comments on commit ab5c441

Please sign in to comment.