Skip to content

Commit

Permalink
[DEVOPS-414] Fix No such file or directory errors with Publish Nuge…
Browse files Browse the repository at this point in the history
…t Package workflow (#113)

<details open>
<summary><a href="https://amuniversal.atlassian.net/browse/DEVOPS-414"
title="DEVOPS-414" target="_blank">DEVOPS-414</a></summary>
  <br />
  <table>
    <tr>
      <th>Summary</th>
<td>Publish Nuget Packages workflow not working in Shared_Libraries
repository</td>
    </tr>
    <tr>
      <th>Type</th>
      <td>
<img alt="Bug"
src="https://amuniversal.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10308?size=medium"
/>
        Bug
      </td>
    </tr>
    <tr>
      <th>Status</th>
      <td>In Progress</td>
    </tr>
    <tr>
      <th>Points</th>
      <td>N/A</td>
    </tr>
    <tr>
      <th>Labels</th>
      <td>-</td>
    </tr>
  </table>
</details>
<!--
do not remove this marker as it will break action-jira-linter's
functionality.
  added_by_jira_lint
-->
---

<!-- Please make sure you read the contribution guidelines and then fill
out the blanks below.

Please format the PR title appropriately based on the type of change:
  [JIRA-XXX]: <description>
-->

## Description

- Set `LIBRARIES` variable to an array and remove the quotes to have it
loop properly

## Related Links

<!-- List any links related to this pull request here

Replace "JIRA-XXX" with the your Jira issue key -->

- Jira Issue: DEVOPS-414
  • Loading branch information
ebronson68 authored Feb 28, 2024
1 parent bae0979 commit 026987c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish-nuget-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 026987c

Please sign in to comment.