Skip to content

Commit

Permalink
Update GHA to use env
Browse files Browse the repository at this point in the history
  • Loading branch information
QU3B1M committed Oct 29, 2024
1 parent 71e8458 commit dabd73a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ jobs:
working-directory: ./plugins/${{ matrix.plugins }}

- name: Save commit hash
run: echo "plugins_hash=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
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 +190,7 @@ jobs:
- run: ls -lR build/distributions

- name: Save commit hash
run: echo "reporting_hash=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
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 +246,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=${{ env.plugins_hash }} \
REPORTING_HASH=${{ env.reporting_hash }} \
name=$(bash build-scripts/baptizer.sh \
-a ${{ matrix.architecture }} \
-d ${{ matrix.distribution }} \
Expand Down

0 comments on commit dabd73a

Please sign in to comment.