diff options
author | morpheus65535 <[email protected]> | 2021-03-27 08:07:27 -0400 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2021-03-27 08:07:27 -0400 |
commit | e56760bbac46c00e3e6c22c38516118f8b7fc9a1 (patch) | |
tree | 903200e5f29a307158507a67bea57148eb849820 /.github | |
parent | 0651b8fb8b1b742a7b4db7005dea8f8d2cb09165 (diff) | |
download | bazarr-e56760bbac46c00e3e6c22c38516118f8b7fc9a1.tar.gz bazarr-e56760bbac46c00e3e6c22c38516118f8b7fc9a1.zip |
Added a validation to make sure dev pipeline is run upon dev branch only
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/release_beta_to_dev.yaml | 6 |
1 files changed, 6 insertions, 0 deletions
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: |