diff --git a/.github/workflows/charts-lint.yaml b/.github/workflows/charts-lint.yaml index 768b64995e3..674f927f4e0 100644 --- a/.github/workflows/charts-lint.yaml +++ b/.github/workflows/charts-lint.yaml @@ -61,7 +61,7 @@ jobs: - name: Install ./forgetool shell: bash run: | - VERSION="3.0.0" + VERSION="3.0.1" FILENAME="forgetool_${VERSION}_linux_amd64.tar.gz" URL="https://github.com/trueforge-org/forgetool/releases/download/v${VERSION}/${FILENAME}" diff --git a/.github/workflows/charts-release.yaml b/.github/workflows/charts-release.yaml index 6e08f273eb4..51044519754 100644 --- a/.github/workflows/charts-release.yaml +++ b/.github/workflows/charts-release.yaml @@ -63,7 +63,7 @@ jobs: - name: Install ./forgetool shell: bash run: | - VERSION="3.0.0" + VERSION="3.0.1" FILENAME="forgetool_${VERSION}_linux_amd64.tar.gz" URL="https://github.com/trueforge-org/forgetool/releases/download/v${VERSION}/${FILENAME}" diff --git a/.github/workflows/daily.yaml b/.github/workflows/daily.yaml index afc3ccfddea..72830747618 100644 --- a/.github/workflows/daily.yaml +++ b/.github/workflows/daily.yaml @@ -38,7 +38,7 @@ jobs: - name: Install ./forgetool shell: bash run: | - VERSION="3.0.0" + VERSION="3.0.1" FILENAME="forgetool_${VERSION}_linux_amd64.tar.gz" URL="https://github.com/trueforge-org/forgetool/releases/download/v${VERSION}/${FILENAME}" @@ -69,13 +69,15 @@ jobs: fi # Transcode to icon-small.webp - if [[ "$EXT" != "webp" && ! -f "${DIR}/icon-small.webp" ]]; then + if [[! -f "${DIR}/icon-small.webp" ]]; then echo "converting file to icon-small.webp: $FILE" cwebp -resize 32 32 -m 6 -mt -q $QUALITY "$FILE" -o "${DIR}/icon-small.webp" &>/dev/null || echo "transcode failed for icon-small.webp" fi - # Remove the original file if it's not a .webp file after both transcodes - if [[ "$EXT" != "webp" ]]; then + # Only remove the original file if: + # 1. it's not already a webp + # 2. icon.webp exists in the same directory + if [[ "$EXT" != "webp" && -f "${DIR}/icon.webp" ]]; then rm "$FILE" fi done diff --git a/.gitignore b/.gitignore index 0c0949e5cfd..88f1f92bf71 100644 --- a/.gitignore +++ b/.gitignore @@ -61,3 +61,4 @@ node_modules/ .qodo clustertool-bin website/ +test.sh