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

Add a drop down menu for choosing Sync or Release action #488

Merged
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
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"
Loading