Skip to content

Commit

Permalink
Add a dropdown to choose Sync or Release action
Browse files Browse the repository at this point in the history
  • Loading branch information
atheo89 committed Dec 9, 2024
1 parent 624e616 commit b2ebcd7
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 @@ -134,10 +138,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 b2ebcd7

Please sign in to comment.