From 2d65ea56449171059c1ac5f50859e7b62e7b943d Mon Sep 17 00:00:00 2001 From: Di Wu Date: Mon, 22 Apr 2024 17:31:33 -0700 Subject: [PATCH] fix(ci): add event triggers for PR created by API --- .github/workflows/build-and-test.yml | 4 +++- .github/workflows/dependency-review.yml | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index dbffab97..f29f2377 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -8,6 +8,8 @@ on: pull_request: branches: - main + repository_dispatch: + types: [create-pull-request] permissions: contents: read @@ -44,4 +46,4 @@ jobs: run: bundle exec pod install - name: Test AppSyncRealTimeClient - run: xcodebuild test -workspace AppSyncRealTimeClient.xcworkspace -scheme AppSyncRealTimeClient -sdk iphonesimulator -destination "platform=iOS Simulator,name=iPhone 14,OS=latest" | xcpretty --simple --color --report junit && exit ${PIPESTATUS[0]} \ No newline at end of file + run: xcodebuild test -workspace AppSyncRealTimeClient.xcworkspace -scheme AppSyncRealTimeClient -sdk iphonesimulator -destination "platform=iOS Simulator,name=iPhone 14,OS=latest" | xcpretty --simple --color --report junit && exit ${PIPESTATUS[0]} diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 27ebe3b7..7a374934 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -4,6 +4,8 @@ on: pull_request: branches: - main + repository_dispatch: + types: [create-pull-request] permissions: contents: read