diff --git a/.github/actions/check-release/action.yml b/.github/actions/check-release/action.yml index 69ba1433..1e1258ce 100644 --- a/.github/actions/check-release/action.yml +++ b/.github/actions/check-release/action.yml @@ -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 }} diff --git a/.github/actions/finalize-release/action.yml b/.github/actions/finalize-release/action.yml index 991d3cab..a55d97ec 100644 --- a/.github/actions/finalize-release/action.yml +++ b/.github/actions/finalize-release/action.yml @@ -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 }} diff --git a/.github/actions/install-releaser/action.yml b/.github/actions/install-releaser/action.yml index ceb28bf6..7f7b4b49 100644 --- a/.github/actions/install-releaser/action.yml +++ b/.github/actions/install-releaser/action.yml @@ -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 diff --git a/.github/actions/populate-release/action.yml b/.github/actions/populate-release/action.yml index 3c641f85..32c1499f 100644 --- a/.github/actions/populate-release/action.yml +++ b/.github/actions/populate-release/action.yml @@ -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 }} diff --git a/.github/actions/prep-release/action.yml b/.github/actions/prep-release/action.yml index b0c95931..9770de20 100644 --- a/.github/actions/prep-release/action.yml +++ b/.github/actions/prep-release/action.yml @@ -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 }} diff --git a/.github/actions/publish-changelog/action.yml b/.github/actions/publish-changelog/action.yml index a87588c6..d6e42f0f 100644 --- a/.github/actions/publish-changelog/action.yml +++ b/.github/actions/publish-changelog/action.yml @@ -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 }} diff --git a/.github/scripts/install-releaser.sh b/.github/scripts/install-releaser.sh new file mode 100644 index 00000000..330b704e --- /dev/null +++ b/.github/scripts/install-releaser.sh @@ -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