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:
parent
0651b8fb8b
commit
e56760bbac
1 changed files with 6 additions and 0 deletions
6
.github/workflows/release_beta_to_dev.yaml
vendored
6
.github/workflows/release_beta_to_dev.yaml
vendored
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue