Skip to content

Commit

Permalink
Fix install releaser step (#553)
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 authored Feb 10, 2024
1 parent cf1fdec commit 81555cf
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 31 deletions.
7 changes: 2 additions & 5 deletions .github/actions/check-release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,8 @@ runs:
- shell: ${{ inputs.shell }}
id: install-releaser
run: |
# Install Jupyter Releaser from git unless we are testing Releaser itself
if ! command -v jupyter-releaser &> /dev/null
then
pip install -q git+https://github.com/jupyter-server/jupyter_releaser.git@v2
fi
cd "${{ github.action_path }}/../../scripts"
bash install-releaser.sh
- id: prep-release
shell: ${{ inputs.shell }}
Expand Down
7 changes: 2 additions & 5 deletions .github/actions/finalize-release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,8 @@ runs:
- name: install-releaser
shell: ${{ inputs.shell }}
run: |
# Install Jupyter Releaser from git unless we are testing Releaser itself
if ! command -v jupyter-releaser &> /dev/null
then
pip install -q git+https://github.com/jupyter-server/jupyter_releaser.git@v2
fi
cd "${{ github.action_path }}/../../scripts"
bash install-releaser.sh
- id: finalize-release
shell: ${{ inputs.shell }}
Expand Down
8 changes: 2 additions & 6 deletions .github/actions/install-releaser/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,5 @@ runs:
- shell: bash
id: install-releaser
run: |
set -eux
# Install Jupyter Releaser from git unless we are testing Releaser itself
if ! command -v jupyter-releaser &> /dev/null
then
pip install -q git+https://github.com/jupyter-server/jupyter_releaser.git@v2
fi
cd "${{ github.action_path }}/../../scripts"
bash install-releaser.sh
7 changes: 2 additions & 5 deletions .github/actions/populate-release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,8 @@ runs:
- name: install-releaser
shell: ${{ inputs.shell }}
run: |
# Install Jupyter Releaser from git unless we are testing Releaser itself
if ! command -v jupyter-releaser &> /dev/null
then
pip install -q git+https://github.com/jupyter-server/jupyter_releaser.git@v2
fi
cd "${{ github.action_path }}/../../scripts"
bash install-releaser.sh
- id: populate-release
shell: ${{ inputs.shell }}
Expand Down
7 changes: 2 additions & 5 deletions .github/actions/prep-release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,8 @@ runs:
- name: install-releaser
shell: ${{ inputs.shell }}
run: |
# Install Jupyter Releaser from git unless we are testing Releaser itself
if ! command -v jupyter-releaser &> /dev/null
then
pip install -q git+https://github.com/jupyter-server/jupyter_releaser.git@v2
fi
cd "${{ github.action_path }}/../../scripts"
bash install-releaser.sh
- id: prep-release
shell: ${{ inputs.shell }}
Expand Down
7 changes: 2 additions & 5 deletions .github/actions/publish-changelog/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,8 @@ runs:
- name: install-releaser
shell: ${{ inputs.shell }}
run: |
# Install Jupyter Releaser from git unless we are testing Releaser itself
if ! command -v jupyter-releaser &> /dev/null
then
pip install -q git+https://github.com/jupyter-server/jupyter_releaser.git@v2
fi
cd "${{ github.action_path }}/../../scripts"
bash install-releaser.sh
- id: publish-changelog
shell: ${{ inputs.shell }}
Expand Down
10 changes: 10 additions & 0 deletions .github/scripts/install-releaser.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
set -eux
# Install Jupyter Releaser if it is not already installed

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

if ! command -v jupyter-releaser &> /dev/null
then
cd "${SCRIPT_DIR}/../.."
pip install -e .
fi

0 comments on commit 81555cf

Please sign in to comment.