ci: guard deploy con variable
This commit is contained in:
@@ -69,7 +69,8 @@ jobs:
|
|||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
needs: build
|
needs: build
|
||||||
if: gitea.ref == 'refs/heads/main'
|
# Actívalo creando la variable de repo DEPLOY_ENABLED=true
|
||||||
|
if: vars.DEPLOY_ENABLED == 'true' && gitea.ref == 'refs/heads/main'
|
||||||
runs-on: linux
|
runs-on: linux
|
||||||
steps:
|
steps:
|
||||||
- name: Deploy por SSH
|
- name: Deploy por SSH
|
||||||
|
|||||||
Reference in New Issue
Block a user