Skip to content

Commit 6f3b211

Browse files
committed
remove default
1 parent a78fc05 commit 6f3b211

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/build-eif.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ on:
1111
description: 'SHA256 hash for the config'
1212
required: true
1313
type: string
14-
default: "2b65fec23d880a003ebde5dc037a4e03b82fd6cbfa6d183f17a08bd0ca232bb9"
1514

1615
jobs:
1716
build:
@@ -28,9 +27,9 @@ jobs:
2827

2928
- name: Update config hash in entrypoint
3029
run: |
31-
# Replace the empty EXPECTED_CONFIG_SHA256 with the provided hash
32-
echo "Input hash received: '${{ github.event.inputs.config_hash }}'"
33-
sed -i 's/^EXPECTED_CONFIG_SHA256=.*$/EXPECTED_CONFIG_SHA256="'"${{ github.event.inputs.config_hash }}"'"/' ./docker/aws-nitro-entrypoint.sh
30+
CONFIG_HASH="${{ github.event.inputs.config_hash || '2b65fec23d880a003ebde5dc037a4e03b82fd6cbfa6d183f17a08bd0ca232bb9' }}"
31+
echo "Using hash: $CONFIG_HASH"
32+
sed -i 's/^EXPECTED_CONFIG_SHA256=.*$/EXPECTED_CONFIG_SHA256="'"$CONFIG_HASH"'"/' ./docker/aws-nitro-entrypoint.sh
3433
grep "EXPECTED_CONFIG_SHA256" ./docker/aws-nitro-entrypoint.sh
3534
3635
# Build Docker image

0 commit comments

Comments
 (0)