Skip to content

Commit bee4d18

Browse files
committed
Simplify release workflow
1 parent 8da654f commit bee4d18

1 file changed

Lines changed: 2 additions & 30 deletions

File tree

.github/workflows/cd.yaml

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,13 @@
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-
#
61
---
72
name: cd
8-
on:
3+
"on":
94
workflow_dispatch:
105
inputs:
116
validate_only:
127
required: false
138
type: boolean
14-
description: |
15-
Run validation with release drafter only
16-
→ Skip the release job
17-
# Note: Change this default to true,
18-
# if the checkbox should be checked by default.
9+
description: Run validation with release drafter only
1910
default: false
20-
# If you don't want any automatic trigger in general, then
21-
# the following check_run trigger lines should all be commented.
22-
# Note: Consider the use case #2 config for 'validate_only' below
23-
# as an alternative option!
2411
check_run:
2512
types:
2613
- completed
@@ -33,22 +20,7 @@ jobs:
3320
maven-cd:
3421
uses: jenkins-infra/github-reusable-workflows/.github/workflows/maven-cd.yml@v1
3522
with:
36-
# Comment / uncomment the validate_only config appropriate to your preference:
37-
#
38-
# Use case #1 (automatic release):
39-
# - Let any successful Jenkins build trigger another release,
40-
# if there are merged pull requests of interest
41-
# - Perform a validation only run with drafting a release note,
42-
# if manually triggered AND inputs.validate_only has been checked.
43-
#
4423
validate_only: ${{ inputs.validate_only == true }}
45-
#
46-
# Alternative use case #2 (no automatic release):
47-
# - Same as use case #1 - but:
48-
# - Let any check_run trigger a validate_only run.
49-
# => enforce the release job to be skipped.
50-
#
51-
#validate_only: ${{ inputs.validate_only == true || github.event_name == 'check_run' }}
5224
secrets:
5325
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
5426
MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }}

0 commit comments

Comments
 (0)