From 4ff58569d05fe3da00d88784f345f8e72a86b7f7 Mon Sep 17 00:00:00 2001 From: Gabriel Radureau Date: Tue, 7 Apr 2026 08:37:08 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20fix:=20remove=20unnecessary=20sc?= =?UTF-8?q?ript,=20use=20inline=20logic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci-cd.yaml | 2 +- scripts/ci-calculate-deps-hash.sh | 12 ------------ 2 files changed, 1 insertion(+), 13 deletions(-) delete mode 100755 scripts/ci-calculate-deps-hash.sh diff --git a/.gitea/workflows/ci-cd.yaml b/.gitea/workflows/ci-cd.yaml index 24dbd6a..f9f913d 100644 --- a/.gitea/workflows/ci-cd.yaml +++ b/.gitea/workflows/ci-cd.yaml @@ -71,7 +71,7 @@ jobs: - name: Calculate dependency hash id: calculate_hash run: | - # Calculate hash of go.mod + go.sum + # Calculate hash of go.mod + go.sum (inline, no script needed) DEPS_HASH=$(sha256sum go.mod go.sum | sha256sum | cut -d' ' -f1 | head -c 12) echo "Dependency hash: $DEPS_HASH" echo "deps_hash=$DEPS_HASH" >> $GITHUB_OUTPUT diff --git a/scripts/ci-calculate-deps-hash.sh b/scripts/ci-calculate-deps-hash.sh deleted file mode 100755 index 4db8df9..0000000 --- a/scripts/ci-calculate-deps-hash.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash -# Calculate hash for go.mod + go.sum to use as Docker tag -# Usage: scripts/ci-calculate-deps-hash.sh - -set -e - -# Calculate SHA256 hash of go.mod and go.sum combined -DEPS_HASH=$(sha256sum go.mod go.sum | sha256sum | cut -d' ' -f1 | head -c 12) -echo "Dependency hash: $DEPS_HASH" -echo "$DEPS_HASH" > .deps_hash - -echo "::set-output name=deps_hash::$DEPS_HASH" \ No newline at end of file