Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add About page #484

Merged
merged 2 commits into from
Feb 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 20 additions & 14 deletions .github/workflows/update-licenses.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,18 @@ jobs:

- name: Generate LICENSES.md
run: |
echo "# Licenses" > LICENSES.md
echo "" >> LICENSES.md
echo "## BirdNET-Go" >> LICENSES.md
echo "" >> LICENSES.md
echo "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International" >> LICENSES.md
echo "https://creativecommons.org/licenses/by-nc-sa/4.0/" >> LICENSES.md
echo "" >> LICENSES.md
echo "## Dependencies" >> LICENSES.md
echo "" >> LICENSES.md
# Create assets directory if it doesn't exist
mkdir -p assets

echo "# Licenses" > assets/LICENSES.md
echo "" >> assets/LICENSES.md
echo "## BirdNET-Go" >> assets/LICENSES.md
echo "" >> assets/LICENSES.md
echo "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International" >> assets/LICENSES.md
echo "https://creativecommons.org/licenses/by-nc-sa/4.0/" >> assets/LICENSES.md
echo "" >> assets/LICENSES.md
echo "## Dependencies" >> assets/LICENSES.md
echo "" >> assets/LICENSES.md

# 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
Expand All @@ -50,13 +53,16 @@ jobs:
continue
fi

echo "### $package" >> LICENSES.md
echo "" >> LICENSES.md
echo "License: $license" >> LICENSES.md
echo "Source: $source" >> LICENSES.md
echo "" >> LICENSES.md
echo "### $package" >> assets/LICENSES.md
echo "" >> assets/LICENSES.md
echo "License: $license" >> assets/LICENSES.md
echo "Source: $source" >> assets/LICENSES.md
echo "" >> assets/LICENSES.md
done

# Create a symbolic link in root directory
ln -sf assets/LICENSES.md LICENSES.md

- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
Expand Down
Loading