ci: rodar deploy sempre em push na main (sem depender do filtro)\n\n- Mantém workflow_dispatch, mas simplifica condicional do job web.\n- Evita ficar preso apenas no job de 'Detect changes'.
This commit is contained in:
parent
44779f54a5
commit
de746890e7
1 changed files with 2 additions and 1 deletions
3
.github/workflows/ci-cd-web-desktop.yml
vendored
3
.github/workflows/ci-cd-web-desktop.yml
vendored
|
|
@ -51,7 +51,8 @@ jobs:
|
|||
deploy:
|
||||
name: Deploy (VPS Linux)
|
||||
needs: changes
|
||||
if: ${{ (github.event_name == 'workflow_dispatch' && github.event.inputs.force_web_deploy == 'true') || (startsWith(github.ref, 'refs/heads/') && needs.changes.outputs.web == 'true') }}
|
||||
# Executa em qualquer push na main (independente do filtro) ou quando disparado manualmente
|
||||
if: ${{ github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/main' }}
|
||||
runs-on: [ self-hosted, linux, vps ]
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue