1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-23 16:23:41 +00:00

Added a validation to make sure dev pipeline is run upon dev branch only

This commit is contained in:
morpheus65535 2021-03-27 08:07:27 -04:00
parent 0651b8fb8b
commit e56760bbac

View file

@ -9,6 +9,12 @@ jobs:
UI_DIRECTORY: ./frontend UI_DIRECTORY: ./frontend
FETCH_DEPTH: 15 # Should be enough FETCH_DEPTH: 15 # Should be enough
steps: 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 - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with: