Skip to content

Commit

Permalink
Replace steps envs to needs on GHA Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
QU3B1M committed Oct 29, 2024
1 parent 71e8458 commit 8cf0d8b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 }} \
Expand Down

0 comments on commit 8cf0d8b

Please sign in to comment.