Skip to content

Commit 81555cf

Browse files
authored
Fix install releaser step (#553)
1 parent cf1fdec commit 81555cf

File tree

7 files changed

+22
-31
lines changed

7 files changed

+22
-31
lines changed

.github/actions/check-release/action.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,8 @@ runs:
2121
- shell: ${{ inputs.shell }}
2222
id: install-releaser
2323
run: |
24-
# Install Jupyter Releaser from git unless we are testing Releaser itself
25-
if ! command -v jupyter-releaser &> /dev/null
26-
then
27-
pip install -q git+https://github.com/jupyter-server/jupyter_releaser.git@v2
28-
fi
24+
cd "${{ github.action_path }}/../../scripts"
25+
bash install-releaser.sh
2926
3027
- id: prep-release
3128
shell: ${{ inputs.shell }}

.github/actions/finalize-release/action.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,8 @@ runs:
3939
- name: install-releaser
4040
shell: ${{ inputs.shell }}
4141
run: |
42-
# Install Jupyter Releaser from git unless we are testing Releaser itself
43-
if ! command -v jupyter-releaser &> /dev/null
44-
then
45-
pip install -q git+https://github.com/jupyter-server/jupyter_releaser.git@v2
46-
fi
42+
cd "${{ github.action_path }}/../../scripts"
43+
bash install-releaser.sh
4744
4845
- id: finalize-release
4946
shell: ${{ inputs.shell }}

.github/actions/install-releaser/action.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,5 @@ runs:
66
- shell: bash
77
id: install-releaser
88
run: |
9-
set -eux
10-
# Install Jupyter Releaser from git unless we are testing Releaser itself
11-
if ! command -v jupyter-releaser &> /dev/null
12-
then
13-
pip install -q git+https://github.com/jupyter-server/jupyter_releaser.git@v2
14-
fi
9+
cd "${{ github.action_path }}/../../scripts"
10+
bash install-releaser.sh

.github/actions/populate-release/action.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,8 @@ runs:
3636
- name: install-releaser
3737
shell: ${{ inputs.shell }}
3838
run: |
39-
# Install Jupyter Releaser from git unless we are testing Releaser itself
40-
if ! command -v jupyter-releaser &> /dev/null
41-
then
42-
pip install -q git+https://github.com/jupyter-server/jupyter_releaser.git@v2
43-
fi
39+
cd "${{ github.action_path }}/../../scripts"
40+
bash install-releaser.sh
4441
4542
- id: populate-release
4643
shell: ${{ inputs.shell }}

.github/actions/prep-release/action.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,8 @@ runs:
4545
- name: install-releaser
4646
shell: ${{ inputs.shell }}
4747
run: |
48-
# Install Jupyter Releaser from git unless we are testing Releaser itself
49-
if ! command -v jupyter-releaser &> /dev/null
50-
then
51-
pip install -q git+https://github.com/jupyter-server/jupyter_releaser.git@v2
52-
fi
48+
cd "${{ github.action_path }}/../../scripts"
49+
bash install-releaser.sh
5350
5451
- id: prep-release
5552
shell: ${{ inputs.shell }}

.github/actions/publish-changelog/action.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,8 @@ runs:
2828
- name: install-releaser
2929
shell: ${{ inputs.shell }}
3030
run: |
31-
# Install Jupyter Releaser from git unless we are testing Releaser itself
32-
if ! command -v jupyter-releaser &> /dev/null
33-
then
34-
pip install -q git+https://github.com/jupyter-server/jupyter_releaser.git@v2
35-
fi
31+
cd "${{ github.action_path }}/../../scripts"
32+
bash install-releaser.sh
3633
3734
- id: publish-changelog
3835
shell: ${{ inputs.shell }}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
set -eux
2+
# Install Jupyter Releaser if it is not already installed
3+
4+
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
5+
6+
if ! command -v jupyter-releaser &> /dev/null
7+
then
8+
cd "${SCRIPT_DIR}/../.."
9+
pip install -e .
10+
fi

0 commit comments

Comments
 (0)