Skip to content

Commit ea3b19c

Browse files
committed
make workflow_dispatch work
1 parent 6f3b211 commit ea3b19c

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/build-eif.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ on:
55
branches: [ main ]
66
pull_request:
77
branches: [ main ]
8-
workflow_dispatch:
9-
inputs:
10-
config_hash:
11-
description: 'SHA256 hash for the config'
12-
required: true
13-
type: string
8+
workflow_dispatch:
9+
inputs:
10+
config_hash:
11+
description: 'SHA256 hash for the config'
12+
required: true
13+
type: string
14+
default: "2b65fec23d880a003ebde5dc037a4e03b82fd6cbfa6d183f17a08bd0ca232bb9"
1415

1516
jobs:
1617
build:
@@ -27,7 +28,7 @@ jobs:
2728

2829
- name: Update config hash in entrypoint
2930
run: |
30-
CONFIG_HASH="${{ github.event.inputs.config_hash || '2b65fec23d880a003ebde5dc037a4e03b82fd6cbfa6d183f17a08bd0ca232bb9' }}"
31+
CONFIG_HASH="${{ github.event.inputs.config_hash }}"
3132
echo "Using hash: $CONFIG_HASH"
3233
sed -i 's/^EXPECTED_CONFIG_SHA256=.*$/EXPECTED_CONFIG_SHA256="'"$CONFIG_HASH"'"/' ./docker/aws-nitro-entrypoint.sh
3334
grep "EXPECTED_CONFIG_SHA256" ./docker/aws-nitro-entrypoint.sh

0 commit comments

Comments
 (0)