From c47b7ebee0cd24cb13018d186f6a690c5c4c9e58 Mon Sep 17 00:00:00 2001 From: Tostti Date: Mon, 11 Mar 2024 17:14:02 -0300 Subject: [PATCH] Fix conditional --- .github/workflows/build_wazuh_dashboard_with_plugins.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_wazuh_dashboard_with_plugins.yml b/.github/workflows/build_wazuh_dashboard_with_plugins.yml index b6c9b01e3797..c18d405ae9a7 100644 --- a/.github/workflows/build_wazuh_dashboard_with_plugins.yml +++ b/.github/workflows/build_wazuh_dashboard_with_plugins.yml @@ -313,26 +313,27 @@ jobs: aws-region: us-east-1 - name: Download deb package + if: contains(needs.test-package-deb.result, 'success') uses: actions/download-artifact@v3 with: name: wazuh-dashboard_${{ env.VERSION }}-${{ env.REVISION }}_amd64.deb path: ${{ env.CURRENT_DIR }}/dev-tools/build-packages/deb/wazuh-dashboard_${{ env.VERSION }}-${{ env.REVISION }}_amd64.deb s3://packages-dev.internal.wazuh.com/development/wazuh/4.x/main/packages/ - name: Upload deb to S3 - if: needs.test-package-deb.result == 'success' + if: contains(needs.test-package-deb.result, 'success') run: | echo "Uploading deb package" aws s3 cp ${{ env.CURRENT_DIR }}/dev-tools/build-packages/deb - name: Download rpm package - if: needs.test-package-rpm.result == 'success' + if: contains(needs.test-package-rpm.result, 'success') uses: actions/download-artifact@v3 with: name: wazuh-dashboard-${{ env.VERSION }}-${{ env.REVISION }}.x86_64.rpm path: ${{ env.CURRENT_DIR }}/dev-tools/build-packages/rpm - name: Upload rpm to S3 - if: needs.test-package-rpm.result == 'success' + if: contains(needs.test-package-rpm.result, 'success') run: | ls -la ${{ env.CURRENT_DIR }}/dev-tools/build-packages/rpm