From 9c3bb33e36eb81bbc80409320dfb6b4b1329033e Mon Sep 17 00:00:00 2001 From: xsalefter Date: Fri, 14 Jul 2023 02:27:25 +0700 Subject: [PATCH] modify release.yml so that it trigger workflow_dispatch in killbill-oss-parent --- .github/workflows/release.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3e0791a2..951d711a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,6 +11,11 @@ on: description: 'tag to (re-)perform (in case of release:perform failure)' required: false default: '' + release_oss_parent: + description: 'Release killbill-oss-parent automatically?' + required: true + default: true + type: boolean env: MAVEN_FLAGS: "-B --no-transfer-progress" @@ -93,3 +98,10 @@ jobs: echo "scm.url=scm\:git\:git@github.com\:${GITHUB_REPOSITORY}.git" > release.properties echo "scm.tag=${{ github.event.inputs.perform_version }}" >> release.properties mvn ${MAVEN_FLAGS} release:perform + - name: Send Repository Dispatch Event + if: github.event.inputs.release_oss_parent == 'true' + env: + GH_TOKEN: ${{ secrets.GH_WORKFLOW_PAT }} + run: | + PROJECT_VERSION=$(git describe --abbrev=0 | cut -d '-' -f 3) + gh workflow -R killbill/killbill-oss-parent run release.yml -f platform_version=${PROJECT_VERSION} \ No newline at end of file