-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
73b8cb7
commit f0d6f8b
Showing
3 changed files
with
288 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,14 @@ on: | |
required: true | ||
description: "Owner of target upstream notebooks repository used to open a PR against" | ||
default: "opendatahub-io" | ||
|
||
notebooks-target-branch: | ||
required: true | ||
description: "Target branch of upstream repository" | ||
default: "main" | ||
python-version: | ||
required: true | ||
description: "Provide the python version to be used for the notebooks" | ||
default: "3.11" | ||
codeflare-repository-organization: | ||
required: true | ||
description: "Owner of origin notebooks repository used to open a PR" | ||
|
@@ -18,7 +25,8 @@ on: | |
description: "Provide version of the Codeflare-SDK release" | ||
|
||
env: | ||
BRANCH_NAME: main | ||
BRANCH_NAME: ${{ github.event.inputs.notebooks-target-branch }} | ||
PYTHON_VERSION: ${{ github.event.inputs.python-version }} | ||
CODEFLARE_RELEASE_VERSION: ${{ github.event.inputs.codeflare_sdk_release_version }} | ||
UPDATER_BRANCH: odh-sync-updater-${{ github.run_id }} | ||
UPSTREAM_OWNER: ${{ github.event.inputs.upstream-repository-organization }} | ||
|
@@ -39,14 +47,14 @@ jobs: | |
git config --global user.email "[email protected]" | ||
git config --global user.name "codeflare-machine-account" | ||
git remote -v | ||
git pull upstream main && git push origin main | ||
git fetch upstream $BRANCH_NAME | ||
git checkout $BRANCH_NAME | ||
git pull upstream $BRANCH_NAME && git push origin $BRANCH_NAME | ||
- name: Setup Python environment | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: | | ||
3.9 | ||
3.11 | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
cache: 'pipenv' | ||
|
||
- name: Install pipenv and pip-versions | ||
|
@@ -55,7 +63,7 @@ jobs: | |
- name: Update Pipfiles in accordance with Codeflare-SDK latest release | ||
run: | | ||
package_name=codeflare-sdk | ||
available_python_versions=("3.9" "3.11") # add space separated python versions according to 'python-versions' specified in 'Setup Python Environment' step | ||
available_python_versions=("$PYTHON_VERSION") # add space separated python versions according to 'python-versions' specified in 'Setup Python Environment' step | ||
install_package_using_pipenv(){ | ||
# args allow custom names for Pipfile and Pipfile.lock | ||
if [ $# -eq 2 ]; then | ||
|
Oops, something went wrong.