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 }} \