Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
martinbonnin committed Jul 12, 2024
1 parent e5f6435 commit a8f65d2
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 78 deletions.
10 changes: 2 additions & 8 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,7 @@ download_binary_and_run_installer() {
need_cmd rmdir
need_cmd unzip

if [ -z ${VERSION} ]; then
# VERSION is either not set or empty
DOWNLOAD_VERSION=$PACKAGE_VERSION
else
# VERSION set and not empty
DOWNLOAD_VERSION=$VERSION
fi
DOWNLOAD_VERSION=$PACKAGE_VERSION

local _tardir="librarian-$DOWNLOAD_VERSION"
local _url="$BINARY_DOWNLOAD_PREFIX/v$DOWNLOAD_VERSION/${_tardir}.zip"
Expand All @@ -51,7 +45,7 @@ download_binary_and_run_installer() {
exit 1
fi

ensure unzip "$_file" -d "$_tmpdir"
ensure unzip -q "$_file" -d "$_tmpdir"
ensure rm -rf "$_installdir"
ensure mv "$_tmpdir/librarian-$PACKAGE_VERSION" "$_installdir"

Expand Down
3 changes: 1 addition & 2 deletions setup-librarian/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ runs:
using: 'composite'
steps:
- run: |
../scripts/install.sh
${{ github.action_path }}/../scripts/install.sh
echo "$HOME/.librarian/bin" >> $GITHUB_PATH
librarian --version
shell: bash
34 changes: 0 additions & 34 deletions setup-librarian/index.js

This file was deleted.

34 changes: 0 additions & 34 deletions setup-librarian/install-librarian.main.kts

This file was deleted.

0 comments on commit a8f65d2

Please sign in to comment.