Skip to content

Commit 4769c11

Browse files
committed
Revert "adding custom build action support"
This reverts commit 6175427.
1 parent 6175427 commit 4769c11

1 file changed

Lines changed: 3 additions & 33 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 3 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,6 @@ on:
1111
description: 'Custom run command for the Build and Deploy step (overrides default Maven command)'
1212
required: false
1313
type: string
14-
custom_build_action:
15-
description: 'Custom action reference for build/test (e.g., ./.github/actions/build-and-test or org/repo/.github/actions/name@ref)'
16-
required: false
17-
type: string
18-
custom_build_action_inputs:
19-
description: 'JSON string of inputs to pass to custom build action'
20-
required: false
21-
type: string
22-
custom_deploy_command:
23-
description: 'Custom deploy command to run after custom build action when SHOULD_DEPLOY is true'
24-
required: false
25-
type: string
2614
runs_on:
2715
description: 'Runner to use for the build job (defaults to ubuntu-latest)'
2816
required: false
@@ -138,40 +126,22 @@ jobs:
138126
echo "SHOULD_DEPLOY=$SHOULD_DEPLOY" >> $GITHUB_ENV
139127
echo "Build configuration: BUILD_WITH_DOCS=$BUILD_WITH_DOCS, SHOULD_DEPLOY=$SHOULD_DEPLOY"
140128
141-
- name: Custom build action
142-
if: ${{ inputs.custom_build_action != '' }}
143-
uses: ${{ inputs.custom_build_action }}
144-
with:
145-
java-version: ${{ matrix.java-version }}
146-
inputs: ${{ inputs.custom_build_action_inputs }}
147-
148-
- name: Custom deploy command
149-
if: ${{ inputs.custom_build_action != '' && inputs.custom_deploy_command != '' && env.SHOULD_DEPLOY == 'true' }}
150-
env:
151-
CUSTOM_DEPLOY_COMMAND: ${{ inputs.custom_deploy_command }}
152-
run: |
153-
# Execute custom deploy command after custom build action
154-
echo "Running custom deploy command"
155-
printf '%s\n' "$CUSTOM_DEPLOY_COMMAND" > /tmp/custom-deploy.sh
156-
chmod +x /tmp/custom-deploy.sh
157-
bash /tmp/custom-deploy.sh
158-
159129
- name: Build
160-
if: ${{ inputs.custom_build_action == '' && inputs.custom_build_command == '' && env.SHOULD_DEPLOY == 'false' }}
130+
if: ${{ inputs.custom_build_command == '' && env.SHOULD_DEPLOY == 'false' }}
161131
run: |
162132
# Run Maven install for non-deploying JDK versions (no docs profile needed)
163133
echo "Building without deployment"
164134
./mvnw clean install -Pspring -B -U
165135
166136
- name: Build and deploy
167-
if: ${{ inputs.custom_build_action == '' && inputs.custom_build_command == '' && env.SHOULD_DEPLOY == 'true' }}
137+
if: ${{ inputs.custom_build_command == '' && env.SHOULD_DEPLOY == 'true' }}
168138
run: |
169139
# Run Maven deploy for the designated JDK version (always includes docs profile)
170140
echo "Building with docs profile and deploying artifacts"
171141
./mvnw clean deploy -Pdocs,deploy,spring -B -U
172142
173143
- name: Custom build command
174-
if: ${{ inputs.custom_build_action == '' && inputs.custom_build_command != '' }}
144+
if: ${{ inputs.custom_build_command != '' }}
175145
env:
176146
CUSTOM_BUILD_COMMAND: ${{ inputs.custom_build_command }}
177147
run: |

0 commit comments

Comments
 (0)