🔄 fix: remove unnecessary script, use inline logic
Some checks failed
CI/CD Pipeline / CI Pipeline (push) Has been cancelled
CI/CD Pipeline / Build Docker Cache (push) Has been cancelled

This commit is contained in:
2026-04-07 08:37:08 +02:00
parent 36823ac112
commit 4ff58569d0
2 changed files with 1 additions and 13 deletions

View File

@@ -71,7 +71,7 @@ jobs:
- name: Calculate dependency hash - name: Calculate dependency hash
id: calculate_hash id: calculate_hash
run: | 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) DEPS_HASH=$(sha256sum go.mod go.sum | sha256sum | cut -d' ' -f1 | head -c 12)
echo "Dependency hash: $DEPS_HASH" echo "Dependency hash: $DEPS_HASH"
echo "deps_hash=$DEPS_HASH" >> $GITHUB_OUTPUT echo "deps_hash=$DEPS_HASH" >> $GITHUB_OUTPUT

View File

@@ -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"