From 7def7e57c560cb68ab1e3a2f15681c7ff1e76e6e Mon Sep 17 00:00:00 2001 From: Marco Collovati Date: Sun, 22 Dec 2024 14:48:16 +0100 Subject: [PATCH] chore(actions): allow forcing snapshots deployment --- .github/workflows/validation.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml index e89cbdfa..fa7804d4 100644 --- a/.github/workflows/validation.yml +++ b/.github/workflows/validation.yml @@ -3,6 +3,12 @@ on: push: branches: [development, vaadin-24.4, vaadin-23] workflow_dispatch: + inputs: + force-deploy: + description: "Force snapshot deploy" + default: false + required: false + type: boolean pull_request_target: types: [opened, synchronize, reopened, edited] permissions: @@ -302,7 +308,7 @@ jobs: permissions: contents: read packages: write - if: ${{ success() && github.event_name == 'push' && github.ref_protected && needs.changes.outputs.deploy-required == 'true'}} + if: ${{ success() && github.ref_protected && ((github.event_name == 'push' && needs.changes.outputs.deploy-required == 'true') || (github.event_name == 'workflow_dispatch' && github.event.inputs.force-deploy == 'true'))}} steps: - uses: actions/checkout@v4 with: