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

pull/1311/head^2
morpheus65535 4 years ago
parent 0651b8fb8b
commit e56760bbac

@ -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:

Loading…
Cancel
Save