Skip to content

Commit

Permalink
Add view parameter step and sudo commands
Browse files Browse the repository at this point in the history
  • Loading branch information
vcerenu committed Sep 11, 2024
1 parent 71d796e commit 9529600
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/Puppet_module_builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,20 @@ jobs:
with:
ref: ${{ inputs.BRANCH_NAME }}

- name: View parameters
run: echo "${{ toJson(inputs) }}"

- name: Verify Tag name
run: |
WAZUH_TAG=$(curl --silent https://api.github.com/repos/wazuh/wazuh/git/refs/tags | grep '["]ref["]:' | sed -E 's/.*\"([^\"]+)\".*/\1/' | cut -c 11- | grep ^${{ inputs.BRANCH_NAME }}$)
echo "WAZUH_TAG=$WAZUH_TAG" >> "$GITHUB_ENV"
- name: Install dependencies
run: |
curl -O https://apt.puppet.com/puppet-tools-release-noble.deb && \
dpkg -i puppet-tools-release-noble.deb && \
apt-get update && \
apt-get install pdk
curl -O https://apt.puppet.com/puppet-tools-release-noble.deb
sudo dpkg -i puppet-tools-release-noble.deb
sudo apt-get update
sudo apt-get install pdk
pdk set config user.analytics.disabled false --type boolean --force
- name: Build Wazuh Puppet module
Expand Down

0 comments on commit 9529600

Please sign in to comment.