From e56760bbac46c00e3e6c22c38516118f8b7fc9a1 Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Sat, 27 Mar 2021 08:07:27 -0400 Subject: [PATCH] Added a validation to make sure dev pipeline is run upon dev branch only --- .github/workflows/release_beta_to_dev.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/release_beta_to_dev.yaml b/.github/workflows/release_beta_to_dev.yaml index 1903e4197..800596b8a 100644 --- a/.github/workflows/release_beta_to_dev.yaml +++ b/.github/workflows/release_beta_to_dev.yaml @@ -9,6 +9,12 @@ jobs: UI_DIRECTORY: ./frontend FETCH_DEPTH: 15 # Should be enough steps: + - name: Validate branch + if: ${{ github.ref != 'refs/heads/development' }} + run: | + echo This action can only be run on development branch, not ${{ github.ref }} + exit 1 + - name: Checkout uses: actions/checkout@v2 with: