Skip to content

Commit 68efb05

Browse files
fix: update add_copyright.sh to install addlicense if not found
Co-Authored-By: [email protected] <[email protected]>
1 parent c4b7deb commit 68efb05

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/scripts/add_copyright.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
11
#!/bin/bash
2+
set -e
3+
24
YEAR=$(date +%Y)
5+
6+
if ! command -v addlicense &> /dev/null; then
7+
echo "Installing addlicense..."
8+
go install github.com/google/addlicense@latest
9+
export PATH=$PATH:$(go env GOPATH)/bin
10+
fi
11+
312
addlicense -c "Airbyte, Inc." -l copyright -v -y "$YEAR" -f .github/scripts/LICENSE_TEMPLATE "$@"

0 commit comments

Comments
 (0)