diff --git a/.github/workflows/kubeflow-release.yaml b/.github/workflows/kubeflow-release.yaml index 3d5ddf2ed66..10538d6c0bf 100644 --- a/.github/workflows/kubeflow-release.yaml +++ b/.github/workflows/kubeflow-release.yaml @@ -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 @@ -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"