Skip to content

Commit

Permalink
Try using label with dedicated prefix as trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
lbianchi-lbl committed Jan 20, 2021
1 parent 0acc461 commit d895c1d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ on:
- requested
pull_request:
types:
# it probably makes more sense to use the review requested feature on one of the bot accounts
# - labeled
- review_requested
- labeled

defaults:
run:
Expand All @@ -24,8 +22,7 @@ jobs:
# NOTE: the name of the special label is hardcoded here
# it would be better to extract it to a more global location, e.g. the workflow-level env context,
# but the env context is not available in job-level if expressions (only step-level ones)
# if: (github.event.name != 'pull_request') || contains(github.event.label.name, 'approved')
if: (github.event.action != 'review_requested') || (github.event.requested_reviewer.login == 'idaes-debug')
if: (github.event.action != 'labeled') || (github.event.label.name == 'CI:run-integration')
runs-on: ubuntu-latest
steps:
- name: Notify
Expand Down

0 comments on commit d895c1d

Please sign in to comment.