Skip to content

Commit

Permalink
Merge pull request #15 from Azure/charliedmcb/makeApprovalTriggerOnly…
Browse files Browse the repository at this point in the history
…TriggerE2EOnSuccess

test(e2e): change to have the ApprovalComment only trigger e2e suite on success
  • Loading branch information
charliedmcb authored Nov 8, 2023
2 parents af71c81 + 511b633 commit a1de844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/e2e-matrix-trigger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ permissions:
contents: read # This is required for actions/checkout
jobs:
e2e-matrix:
if: github.event_name != 'pull_request_review' || startsWith(github.event.review.body ,'/test')
if: (github.event_name != 'pull_request_review' && github.event_name != 'workflow_run') || (github.event_name == 'pull_request_review' && startsWith(github.event.review.body ,'/test')) || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success')
uses: ./.github/workflows/e2e-matrix.yaml
secrets:
E2E_CLIENT_ID: ${{ secrets.E2E_CLIENT_ID }}
Expand Down

0 comments on commit a1de844

Please sign in to comment.