-
Notifications
You must be signed in to change notification settings - Fork 8
31 lines (29 loc) · 1 KB
/
Copy pathcd.yaml
File metadata and controls
31 lines (29 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Continuous delivery (JEP-229): https://www.jenkins.io/redirect/continuous-delivery-of-plugins
# A successful default-branch build with a merged, labelled PR of interest publishes a release.
# Requires the "cd: enabled: true" entry in jenkins-infra/repository-permissions-updater to be merged,
# which provisions the MAVEN_USERNAME / MAVEN_TOKEN repository secrets.
name: cd
on:
workflow_dispatch:
inputs:
validate_only:
required: false
type: boolean
description: |
Run validation with release drafter only
→ Skip the release job
default: false
check_run:
types:
- completed
permissions:
checks: read
contents: write
jobs:
maven-cd:
uses: jenkins-infra/github-reusable-workflows/.github/workflows/maven-cd.yml@7704ec4236e99ca271bdef1adb675b65b8e283a9 # v1
with:
validate_only: ${{ inputs.validate_only == true }}
secrets:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }}