Skip to content

Commit

Permalink
modify release.yml so that it trigger workflow_dispatch in killbill-o…
Browse files Browse the repository at this point in the history
…ss-parent
  • Loading branch information
xsalefter committed Jul 13, 2023
1 parent 1eb0de0 commit 9c3bb33
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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}

0 comments on commit 9c3bb33

Please sign in to comment.