From afc455992f8cc8248bea620602a8293b92ce7a42 Mon Sep 17 00:00:00 2001 From: Nicolas Agustin Guevara Pihen <42900763+Tostti@users.noreply.github.com> Date: Thu, 28 Nov 2024 08:10:36 -0300 Subject: [PATCH] Apply reference name change (#138) --- .github/workflows/dev-environment.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dev-environment.yml b/.github/workflows/dev-environment.yml index 332765b1..85a1c858 100644 --- a/.github/workflows/dev-environment.yml +++ b/.github/workflows/dev-environment.yml @@ -75,8 +75,9 @@ jobs: yarn config set registry https://registry.yarnpkg.com; cd /home/node/kbn/plugins/wazuh-security-plugin && yarn && ${{ inputs.command }}; ' - - name: Get the plugin version + - name: Get the plugin version and and format reference name run: | + echo "githubReference=$(echo ${{ inputs.reference }} | sed 's/\//-/g')" >> $GITHUB_ENV echo "version=$(jq -r '.wazuh.version' $(pwd)/wazuh-security-plugin/package.json)" >> $GITHUB_ENV echo "revision=$(jq -r '.wazuh.revision' $(pwd)/wazuh-security-plugin/package.json)" >> $GITHUB_ENV @@ -84,7 +85,7 @@ jobs: if: ${{ inputs.artifact_name && inputs.artifact_path }} uses: actions/upload-artifact@v4 with: - name: ${{ inputs.artifact_name }}_${{ env.version }}-${{ env.revision }}_${{ inputs.reference }}.zip + name: ${{ inputs.artifact_name }}_${{ env.version }}-${{ env.revision }}_${{ env.githubReference }}.zip path: ${{ inputs.artifact_path }} overwrite: true @@ -94,4 +95,4 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} path: ./wazuh-security-plugin/target/test-coverage/coverage-summary.json - title: "Code coverage (Jest)" \ No newline at end of file + title: 'Code coverage (Jest)'