From b2ebcd7fadc8deb9ef50e87f78425cf7fa9801b0 Mon Sep 17 00:00:00 2001 From: atheo89 Date: Mon, 9 Dec 2024 11:05:59 +0100 Subject: [PATCH] Add a dropdown to choose Sync or Release action --- .github/workflows/kubeflow-release.yaml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) 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"