Skip to content

Commit

Permalink
Merge pull request #11 from Azure/charliedmcb/updateToUseApprovalComm…
Browse files Browse the repository at this point in the history
…entWorkflowForE2ETrigger

test(e2e): update to add approval comment workflow for e2e trigger
  • Loading branch information
charliedmcb authored Nov 8, 2023
2 parents bee5a16 + 5729736 commit af71c81
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/approval-comment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: ApprovalComment
on:
pull_request_review:
types: [submitted]

jobs:
approval-comment:
if: startsWith(github.event.review.body, '/e2e')
runs-on: ubuntu-latest
steps:
- name: run e2e
run: |
echo "run e2e"
3 changes: 3 additions & 0 deletions .github/workflows/e2e-matrix-trigger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches: [main]
pull_request_review: # TODO(charliedmcb): come back to this and factor out the E2E trigger like AWS and clean it up
types: [submitted]
workflow_run:
workflows: [ApprovalComment]
types: [completed]
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
Expand Down

0 comments on commit af71c81

Please sign in to comment.