Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modify release.yml so that it trigger workflow_dispatch in oss-parent #144

Merged
merged 1 commit into from
Jul 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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}
Loading