Skip to content

Commit

Permalink
chore(actions): allow forcing snapshots deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollovati committed Dec 22, 2024
1 parent 9500b6b commit 7def7e5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 7def7e5

Please sign in to comment.