Skip to content

Commit

Permalink
chore: add variable for addon-folder-name
Browse files Browse the repository at this point in the history
  • Loading branch information
dvarasani-crest committed Aug 29, 2024
1 parent 5665ebf commit 95bc417
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/reusable-build-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,7 @@ jobs:
shell: bash
run: |
sudo apt-get install -y crudini
ADDON_FOLDER_NAME=$(crudini --get package/default/app.conf id name)
ADDON_NAME=$(crudini --get package/default/app.conf id name | tr '[:lower:]' '[:upper:]')
if [[ -n $(echo "${ADDON_NAME}" | awk -F 'SPLUNK_TA_' '{print $2}') ]];
then
Expand All @@ -916,6 +917,7 @@ jobs:
echo "directory-path=/tmp"
echo "s3-bucket=${{ needs.setup-workflow.outputs.s3_bucket_k8s }}"
echo "addon-name=\"$ADDON_NAME\""
echo "addon-folder-name=\"$ADDON_FOLDER_NAME\""
echo "job-name=wf-$JOB_NAME"
echo "labels=$LABELS"
echo "addon-upload-path=$ADDON_UPLOAD_PATH"
Expand Down Expand Up @@ -1040,6 +1042,7 @@ jobs:
workflow-template-ns: ${{ needs.setup.outputs.argo-namespace }}
addon-url: ${{ needs.setup.outputs.addon-upload-path }}
addon-name: ${{ needs.setup.outputs.addon-name }}
addon-folder-name: ${{ needs.setup.outputs.addon-folder-name }}
sc4s-version: ${{ matrix.sc4s.version }}
sc4s-docker-registry: ${{ matrix.sc4s.docker_registry }}
k8s-manifests-branch: ${{ needs.setup.outputs.k8s-manifests-branch }}
Expand Down

0 comments on commit 95bc417

Please sign in to comment.