Skip to content

Commit

Permalink
chore: update update-licenses workflow to exclude cmd packages
Browse files Browse the repository at this point in the history
- Modified the logic in the update-licenses workflow to skip both internal and cmd packages unless they contain a LICENSE file.
- This change enhances the accuracy of license documentation by ensuring only relevant packages are included in the license generation process.
  • Loading branch information
tphakala committed Jan 14, 2025
1 parent 9d31bc2 commit aae6661
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/update-licenses.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ jobs:
# Get licenses excluding internal packages unless they have a LICENSE file
go-licenses csv github.com/tphakala/birdnet-go/... | while IFS=, read -r package license source; do
# Skip internal packages unless they contain a LICENSE file
if [[ $package == *"/internal/"* ]] && ! [[ -f "${source}/LICENSE" ]]; then
# Skip internal packages and cmd packages unless they contain a LICENSE file
if [[ $package == *"/internal/"* || $package == *"/cmd/"* ]] && ! [[ -f "${source}/LICENSE" ]]; then
continue
fi
Expand Down

0 comments on commit aae6661

Please sign in to comment.