Skip to content

Commit 21eb394

Browse files
authored
Update cd.yaml
1 parent f5e4929 commit 21eb394

File tree

1 file changed

+1
-40
lines changed

1 file changed

+1
-40
lines changed

.github/workflows/cd.yaml

Lines changed: 1 addition & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,6 @@
1-
# Note: additional setup is required, see https://www.jenkins.io/redirect/continuous-delivery-of-plugins
2-
#
3-
# Please find additional hints for individual trigger use case
4-
# configuration options inline this script below.
5-
#
6-
name: cd
1+
name: CD
72
on:
83
workflow_dispatch:
9-
inputs:
10-
validate_only:
11-
required: false
12-
type: boolean
13-
description: |
14-
Run validation with release drafter only
15-
→ Skip the release job
16-
# Note: Change this default to true,
17-
# if the checkbox should be checked by default.
18-
default: false
19-
# If you don't want any automatic trigger in general, then
20-
# the following check_run trigger lines should all be commented.
21-
# Note: Consider the use case #2 config for 'validate_only' below
22-
# as an alternative option!
23-
check_run:
24-
types:
25-
- completed
264

275
permissions:
286
checks: read
@@ -31,23 +9,6 @@ permissions:
319
jobs:
3210
maven-cd:
3311
uses: jenkins-infra/github-reusable-workflows/.github/workflows/maven-cd.yml@v1
34-
with:
35-
# Comment / uncomment the validate_only config appropriate to your preference:
36-
#
37-
# Use case #1 (automatic release):
38-
# - Let any successful Jenkins build trigger another release,
39-
# if there are merged pull requests of interest
40-
# - Perform a validation only run with drafting a release note,
41-
# if manually triggered AND inputs.validate_only has been checked.
42-
#
43-
validate_only: ${{ inputs.validate_only == true }}
44-
#
45-
# Alternative use case #2 (no automatic release):
46-
# - Same as use case #1 - but:
47-
# - Let any check_run trigger a validate_only run.
48-
# => enforce the release job to be skipped.
49-
#
50-
#validate_only: ${{ inputs.validate_only == true || github.event_name == 'check_run' }}
5112
secrets:
5213
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
5314
MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }}

0 commit comments

Comments
 (0)