Skip to content

Commit

Permalink
Add step to add last_stage variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Enaraque committed Jan 31, 2025
1 parent b508db0 commit 39740ee
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/builder_installation_assistant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:
description: "Is stage?"
type: boolean
default: false
add_last_stage:
description: "Add last stage? (alpha1, beta2, rc3, etc)"
type: boolean
default: false
checksum:
description: "Add checksum"
type: boolean
Expand Down Expand Up @@ -40,6 +44,7 @@ on:
required: false

env:
LAST_STAGE: $(echo ${{ inputs.wazuh_installation_assistant_reference }} | cut -d '-' -f 2)
S3_BUCKET: ${{ vars.AWS_S3_BUCKET }}
S3_REPOSITORY_PATH: "development/wazuh/4.x/secondary/installation-assistant"
BUILDER_PATH: "builder.sh"
Expand Down Expand Up @@ -77,6 +82,12 @@ jobs:
echo "WAZUH_VERSION=$WAZUH_VERSION" >> $GITHUB_ENV
echo "COMMIT_SHORT_SHA=$COMMIT_SHORT_SHA" >> $GITHUB_ENV
- name: Add last_stage in last_Stage variable in wazuh-instal.sh
if: ${{ inputs.add_last_stage == true }}
run: |
sed -i "s|last_stage=\"\"|last_stage=\"${{ env.LAST_STAGE }}\"|g" ${{ github.workspace }}/install_functions/installVariables.sh
- name: Change files name for stage build
if: ${{ inputs.is_stage == false }}
run: |
Expand Down

0 comments on commit 39740ee

Please sign in to comment.