Skip to content

Commit f42c96c

Browse files
committed
Use environment variable for custom build command
1 parent aa2b498 commit f42c96c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,11 +232,13 @@ jobs:
232232
echo "Build configuration: BUILD_WITH_DOCS=$BUILD_WITH_DOCS"
233233
234234
- name: Build and deploy
235+
env:
236+
CUSTOM_BUILD_COMMAND: ${{ inputs.custom_build_command }}
235237
run: |
236238
# Write build command to temporary script file
237-
if [[ -n "${{ inputs.custom_build_command }}" ]]; then
239+
if [[ -n "$CUSTOM_BUILD_COMMAND" ]]; then
238240
# Custom build command provided by caller
239-
printf '%s\n' '${{ inputs.custom_build_command }}' > /tmp/build-deploy.sh
241+
printf '%s\n' "$CUSTOM_BUILD_COMMAND" > /tmp/build-deploy.sh
240242
else
241243
# Default Maven build command with conditional docs profile
242244
cat > /tmp/build-deploy.sh << 'DEFAULT_BUILD_EOF'

0 commit comments

Comments
 (0)