From 2626b4126596383cadaa3301070a4c388cecace2 Mon Sep 17 00:00:00 2001 From: Glen Robson Date: Tue, 23 Mar 2021 11:11:13 +0000 Subject: [PATCH 1/2] Trying the pull request trigger Wondering if this will run the preview if the pull request is remote. --- .github/workflows/preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 2db9b67..8d2d77e 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -5,7 +5,7 @@ name: Deploy-preview # Controls when the action will run. Triggers the workflow on push or pull request # events but only for the main branch on: - push: + pull_request: branches: - '*' - '!main' From 20dbee28e7b7aaf60be76c888673617e80d81b53 Mon Sep 17 00:00:00 2001 From: Glen Robson Date: Tue, 23 Mar 2021 11:13:24 +0000 Subject: [PATCH 2/2] Allowing to run on all branches --- .github/workflows/preview.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 8d2d77e..29c6f51 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -4,11 +4,8 @@ name: Deploy-preview # Controls when the action will run. Triggers the workflow on push or pull request # events but only for the main branch -on: - pull_request: - branches: - - '*' - - '!main' +on: pull_request + # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: # This workflow contains a single job called "build"