ci: simplificar condición del paso de despliegue para aislar el bug
CI / test-and-build (push) Successful in 12s
CI / test-and-build (push) Successful in 12s
Prueba si el operador && en la expresión if: es lo que causa que el runner omita el paso sin dejar rastro; se reduce a una sola comparación.
This commit is contained in:
@@ -71,7 +71,7 @@ jobs:
|
||||
run: echo "ref=${{ github.ref }} event=${{ github.event_name }} ref_name=${{ github.ref_name }}"
|
||||
|
||||
- name: Publicar en producción (clusterlog.mcps-epcm.org)
|
||||
if: ${{ github.ref == 'refs/heads/main' && github.event_name == 'push' }}
|
||||
if: ${{ github.ref_name == 'main' }}
|
||||
run: rsync -a --delete public/ /opt/clusterlog/public/
|
||||
|
||||
- name: Fin del pipeline
|
||||
|
||||
Reference in New Issue
Block a user