Skip to content

Commit 060bd2e

Browse files
authored
Merge pull request #93 from xsalefter/oss-751-workflow_dispatch
modify release.yml so that it trigger workflow_dispatch in oss-parent
2 parents 7f22a97 + d856f4c commit 060bd2e

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ on:
1111
description: 'tag to (re-)perform (in case of release:perform failure)'
1212
required: false
1313
default: ''
14+
release_oss_parent:
15+
description: 'Release killbill-oss-parent automatically?'
16+
required: true
17+
default: true
18+
type: boolean
1419

1520
env:
1621
MAVEN_FLAGS: "-B --no-transfer-progress"
@@ -93,3 +98,10 @@ jobs:
9398
echo "scm.url=scm\:git\:git@github.com\:${GITHUB_REPOSITORY}.git" > release.properties
9499
echo "scm.tag=${{ github.event.inputs.perform_version }}" >> release.properties
95100
mvn ${MAVEN_FLAGS} release:perform
101+
- name: Send Repository Dispatch Event
102+
if: github.event.inputs.release_oss_parent == 'true'
103+
env:
104+
GH_TOKEN: ${{ secrets.GH_WORKFLOW_PAT }}
105+
run: |
106+
PROJECT_VERSION=$(git describe --abbrev=0 | cut -d '-' -f 4)
107+
gh workflow -R killbill/killbill-oss-parent run release.yml -f base_plugin_version=${PROJECT_VERSION}

0 commit comments

Comments
 (0)