From 8cf0d8bc0813d9816e15c06926cc8af9ff8b244c Mon Sep 17 00:00:00 2001 From: quebim Date: Tue, 29 Oct 2024 09:19:05 -0300 Subject: [PATCH] Replace steps envs to needs on GHA Workflow --- .github/workflows/build.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3d897bce5060d..1432ebb5819e9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -152,7 +152,8 @@ jobs: working-directory: ./plugins/${{ matrix.plugins }} - name: Save commit hash - run: echo "plugins_hash=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT" + id: save-hash + run: echo "plugins_hash=$(git rev-parse --short HEAD)" >> "$GITHUB_ENV" - name: Upload artifact uses: actions/upload-artifact@v4 @@ -190,7 +191,8 @@ jobs: - run: ls -lR build/distributions - name: Save commit hash - run: echo "reporting_hash=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT" + id: save-hash + run: echo "reporting_hash=$(git rev-parse --short HEAD)" >> "$GITHUB_ENV" - name: Upload artifact uses: actions/upload-artifact@v4 @@ -246,8 +248,8 @@ jobs: - name: Run `baptizer.sh` run: | - PLUGINS_HASH=${{ steps.build-wazuh-plugins.outputs.plugins_hash }} \ - REPORTING_HASH=${{ steps.build-reporting-plugin.outputs.reporting_hash }} \ + PLUGINS_HASH=${{ needs.build-wazuh-plugins.outputs.plugins_hash }} \ + REPORTING_HASH=${{ needs.build-reporting-plugin.outputs.reporting_hash }} \ name=$(bash build-scripts/baptizer.sh \ -a ${{ matrix.architecture }} \ -d ${{ matrix.distribution }} \