From b818be7bd5224b38c80ba2921b8459c994d6afbb Mon Sep 17 00:00:00 2001 From: Mateus Melchiades Date: Wed, 26 Jun 2024 08:45:44 -0300 Subject: [PATCH] chore: bump Vib to v0.7.2 --- README.md | 2 +- setup.sh | 36 ++++++++++++++++++------------------ 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 5fa0436..531440c 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ See [action.yml](action.yml) ```yml steps: - uses: actions/checkout@v4 - - uses: vanilla-os/vib-gh-action@v0.7.1 + - uses: vanilla-os/vib-gh-action@v0.7.2 with: recipe: 'myRecipe.yml' plugins: org/repo:tag,org/repo:tag diff --git a/setup.sh b/setup.sh index b5d6b70..facf888 100644 --- a/setup.sh +++ b/setup.sh @@ -1,6 +1,6 @@ #!/bin/bash -VIB_VERSION="0.7.1" +VIB_VERSION="0.7.2" PLUGINS_ARG="${1:-}" wget "https://github.com/Vanilla-OS/Vib/releases/download/v$VIB_VERSION/plugins.tar.xz" @@ -8,24 +8,24 @@ tar -xf plugins.tar.xz mv build/plugins plugins if [ -z "$PLUGINS_ARG" ]; then - echo "No plugins specified, using static Vib binary" + echo "No plugins specified, using static Vib binary" else - echo "Plugins specified, downloading plugin assets..." - - IFS=',' read -ra PLUGIN_LIST <<< "$PLUGINS_ARG" - for PLUGIN in "${PLUGIN_LIST[@]}"; do - REPO=$(echo "$PLUGIN" | awk -F':' '{print $1}') - TAG=$(echo "$PLUGIN" | awk -F':' '{print $2}') - - echo "Downloading assets for $REPO..." - - ASSETS_URL="https://api.github.com/repos/$REPO/releases/tags/$TAG" - ASSET_URLS=$(curl -s "$ASSETS_URL" | grep -o -E 'https://github.com/[^"]+\.so') - - for ASSET_URL in $ASSET_URLS; do - wget -P plugins/ "$ASSET_URL" - done - done + echo "Plugins specified, downloading plugin assets..." + + IFS=',' read -ra PLUGIN_LIST <<<"$PLUGINS_ARG" + for PLUGIN in "${PLUGIN_LIST[@]}"; do + REPO=$(echo "$PLUGIN" | awk -F':' '{print $1}') + TAG=$(echo "$PLUGIN" | awk -F':' '{print $2}') + + echo "Downloading assets for $REPO..." + + ASSETS_URL="https://api.github.com/repos/$REPO/releases/tags/$TAG" + ASSET_URLS=$(curl -s "$ASSETS_URL" | grep -o -E 'https://github.com/[^"]+\.so') + + for ASSET_URL in $ASSET_URLS; do + wget -P plugins/ "$ASSET_URL" + done + done fi wget "https://github.com/Vanilla-OS/Vib/releases/download/v$VIB_VERSION/vib"