From c7375fb0f60b33d0348540e320fb2ea35dbeabc4 Mon Sep 17 00:00:00 2001 From: Jared Trouth Date: Mon, 6 Jun 2022 14:31:01 -0500 Subject: [PATCH] Update master PR workflow --- .github/workflows/master-pr-gae.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/master-pr-gae.yaml b/.github/workflows/master-pr-gae.yaml index 75b03731..687574e6 100644 --- a/.github/workflows/master-pr-gae.yaml +++ b/.github/workflows/master-pr-gae.yaml @@ -14,7 +14,7 @@ jobs: build-push-deploy: name: 'Deploy Preview Version' runs-on: ubuntu-latest - if: ${{ github.event.action != 'closed'}} + if: ${{ (github.event.action != 'closed') && (startsWith(github.head_ref, 'preview') == true) }} # Checkout the repository to the GitHub Actions runner steps: @@ -66,7 +66,7 @@ jobs: cleanup: name: 'Cleanup PR Preview' runs-on: ubuntu-latest - if: ${{ github.event.action == 'closed'}} + if: ${{ (github.event.action == 'closed') && (startsWith(github.head_ref, 'preview') == true) }} # Checkout the repository to the GitHub Actions runner steps: