From a30e1470da6b10d951cdc9977ecebb891381fae4 Mon Sep 17 00:00:00 2001 From: Sethu Satheesh <118425907+WH1T3-E4GL3@users.noreply.github.com> Date: Tue, 29 Oct 2024 22:45:12 -0700 Subject: [PATCH] Update update-readme.yml --- .github/workflows/update-readme.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-readme.yml b/.github/workflows/update-readme.yml index df27ace..91b1481 100644 --- a/.github/workflows/update-readme.yml +++ b/.github/workflows/update-readme.yml @@ -27,12 +27,15 @@ jobs: https://api.github.com/repos/WH1T3-E4GL3/gixposed/releases/latest | jq -r .tag_name) fi echo "Latest version: $latest_version" + # Strip the 'v' if it exists + deb_file_version="${latest_version#v}" echo "latest_version=$latest_version" >> $GITHUB_ENV + echo "deb_file_version=$deb_file_version" >> $GITHUB_ENV - name: Update README.md with latest version id: update-readme run: | - deb_file="gixposed_${{ env.latest_version#v }}.deb" + deb_file="gixposed_${deb_file_version}.deb" # Update README.md with the latest version and download link sed -i "s|wget https://github.com/WH1T3-E4GL3/gixposed/releases/download/.*|wget https://github.com/WH1T3-E4GL3/gixposed/releases/download/${{ env.latest_version }}/${deb_file}|" README.md