Skip to content

Commit

Permalink
Merge pull request #488 from atheo89/add-dropdow-selection
Browse files Browse the repository at this point in the history
Add a drop down menu for choosing Sync or Release action
  • Loading branch information
openshift-merge-bot[bot] authored Dec 10, 2024
2 parents 0ed5904 + b2ebcd7 commit 0e7e77b
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/kubeflow-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@ name: Kubeflow Release Pipeline
on:
workflow_dispatch:
inputs:
create-new-release:
description: "Create a new release?"
release-type:
description: "Select the type of action to perform"
required: true
default: "true"
default: "Sync"
type: choice
options:
- Sync
- Release
env:
CREATE_NEW_RELEASE: ${{ inputs.create-new-release }}
CREATE_NEW_RELEASE: ${{ inputs.release-type == 'Release' }}
REPO_OWNER: opendatahub-io
REPO_NAME: kubeflow
BRANCH_NAME: v1.9-branch
Expand Down Expand Up @@ -136,10 +140,10 @@ jobs:
echo "pr_merged=false" >> $GITHUB_OUTPUT
exit 1
# 5. Create a release
# 5. Create a release
create-release:
needs: [update-release-images, check-pr-merged]
if: ${{ needs.check-pr-merged.outputs.pr_merged == 'true' && inputs.create-new-release == 'true' }}
if: ${{ needs.check-pr-merged.outputs.pr_merged == 'true' && inputs.release-type == 'Release' }}
uses: opendatahub-io/kubeflow/.github/workflows/create-release.yaml@main
with:
target_branch: "v1.9-branch"

0 comments on commit 0e7e77b

Please sign in to comment.