Skip to content

Commit

Permalink
ci: change validate nupkg from Bash to C#
Browse files Browse the repository at this point in the history
  • Loading branch information
guitarrapc committed Dec 17, 2024
1 parent a78cc8a commit ac59662
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,15 +142,7 @@ jobs:
if: ${{ inputs.nuget-push }}
run: |
while read -r nuget_path; do
if [[ "${nuget_path}" == "" ]]; then continue; fi
# shellcheck disable=SC2086
if ! ls -l ${nuget_path}; then
echo "Specified nuget package not found. path: $nuget_path"
if [[ "${nuget_path}" == *.nupkg ]]; then
echo ".nupkg must be included in the artifact."
exit 1
fi
fi
dotnet run --project "./src/Actions/Actions.csproj" -- validate-nupkg-exists --path-pattern "$nuget_path"
done <<< "${{ inputs.nuget-path }}"
# Create Releases
Expand Down

0 comments on commit ac59662

Please sign in to comment.