From 026987ca20ef31ea7b12944bb0af8806260d0dca Mon Sep 17 00:00:00 2001 From: Ella Bronson <111298136+ebronson68@users.noreply.github.com> Date: Wed, 28 Feb 2024 10:39:47 -0600 Subject: [PATCH] [DEVOPS-414] Fix `No such file or directory` errors with Publish Nuget Package workflow (#113)
DEVOPS-414
Summary Publish Nuget Packages workflow not working in Shared_Libraries repository
Type Bug Bug
Status In Progress
Points N/A
Labels -
--- ## Description - Set `LIBRARIES` variable to an array and remove the quotes to have it loop properly ## Related Links - Jira Issue: DEVOPS-414 --- .github/workflows/publish-nuget-package.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-nuget-package.yaml b/.github/workflows/publish-nuget-package.yaml index 3383212..fb31756 100644 --- a/.github/workflows/publish-nuget-package.yaml +++ b/.github/workflows/publish-nuget-package.yaml @@ -71,7 +71,7 @@ jobs: - name: Push ${{ steps.project-name.outputs.projectName }} Packages if: ${{ inputs.libraries }} run: | - LIBRARIES="${{ inputs.libraries }}" + LIBRARIES=(${{ inputs.libraries }}) for LIBRARY in "${LIBRARIES[@]}"; do cd "${{ github.workspace }}/${{ steps.project-name.outputs.projectName }}/${LIBRARY}/bin/Release/" dotnet nuget push "*.nupkg" --api-key "${{ secrets.GITHUB_TOKEN }}" --source "https://nuget.pkg.github.com/andrews-mcmeel-universal/index.json" --skip-duplicate