Skip to content

Commit

Permalink
Fix systems validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Tostti committed Oct 23, 2024
1 parent 066c001 commit 087738c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_wazuh_dashboard_with_plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ jobs:
steps:
- name: Validate inputs
run: |
if { [ "${{ inputs.architecture }}" = "amd64" ] || [ "${{ inputs.architecture }}" = "arm64" ]; } && [ "${{ inputs.system }}" = "rpm" ]; then
if [[ "${{ inputs.architecture }}" == "amd64" || "${{ inputs.architecture }}" == "arm64" ]] && [[ "${{ inputs.system }}" == "rpm" ]]; then
echo "Invalid combination of architecture and system"
exit 1
fi
if {[ "${{ inputs.architecture }}" = "x86_64" ] || [ "${{ inputs.architecture }}" = "aarch64" ]; } && [ "${{ inputs.system }}" = "deb" ]; then
if [[ "${{ inputs.architecture }}" == "x86_64" || "${{ inputs.architecture }}" == "aarch64" ]] && [[ "${{ inputs.system }}" == "deb" ]]; then
echo "Invalid combination of architecture and system"
exit 1
fi
Expand Down

0 comments on commit 087738c

Please sign in to comment.