Skip to content

Commit

Permalink
Merge pull request #144 from xsalefter/oss-751-workflow_dispatch
Browse files Browse the repository at this point in the history
modify release.yml so that it trigger workflow_dispatch in oss-parent
  • Loading branch information
pierre authored Jul 13, 2023
2 parents 1eb0de0 + 9c3bb33 commit 4fa797e
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 4fa797e

Please sign in to comment.