Skip to content

Commit e9e6bf6

Browse files
committed
CI: opt-in Maven deploy + concurrency to dedupe push/PR runs
1 parent 6954917 commit e9e6bf6

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/main.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,17 @@ on:
55
pull_request:
66
workflow_dispatch:
77
inputs:
8+
deploy:
9+
description: 'Deploy to Maven Central'
10+
type: boolean
11+
default: false
812
lucee-versions:
913
description: 'JSON array of Lucee version queries (e.g. ["6.2.5.34/snapshot/jar","6.2.6.0/snapshot/jar"])'
1014
default: '["6.2/snapshot/jar","7.0/snapshot/jar"]'
11-
dry-run:
12-
description: 'Dry run - skip deploy to Maven'
13-
type: boolean
14-
default: false
15+
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
18+
cancel-in-progress: true
1519

1620
jobs:
1721
setup:
@@ -571,7 +575,7 @@ jobs:
571575
deploy:
572576
runs-on: ubuntu-latest
573577
needs: [build-extension, test, test-config-override]
574-
if: github.event_name == 'workflow_dispatch' && needs.test.result == 'success' && needs.test-config-override.result == 'success' && !inputs.dry-run
578+
if: github.event_name == 'workflow_dispatch' && inputs.deploy && needs.test.result == 'success' && needs.test-config-override.result == 'success'
575579
steps:
576580
- name: Checkout repository
577581
uses: actions/checkout@v6

0 commit comments

Comments
 (0)