diff --git a/.gitea/workflows/base-build.yml b/.gitea/workflows/base-build.yml index c4ee78b..3b528cc 100644 --- a/.gitea/workflows/base-build.yml +++ b/.gitea/workflows/base-build.yml @@ -200,8 +200,19 @@ jobs: - name: Update sha256sums run: | cd upload-repo - sed -i "/debian-${{ matrix.version }}.tar.bz2/d" sha256sums.txt 2>/dev/null || true - sha256sum "$VERSION/debian-$VERSION.tar.bz2" >> sha256sums.txt + VERSION=${{ matrix.version }} + TAR="../output/$VERSION/debian-$VERSION.tar.bz2" + + # Remove old entry + sed -i "/debian-$VERSION.tar.bz2/d" sha256sums.txt 2>/dev/null || true + + if [[ ! -f "$TAR" ]]; then + echo "[ERROR] Tarball not found at $TAR" + exit 1 + fi + + # Add new sha256 + sha256sum "$TAR" >> sha256sums.txt - name: Commit and push if changed id: commit_archives