Skip to content

Commit 538d339

Browse files
committed
Use first GitHub token from .netrc
1 parent b94cd69 commit 538d339

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ release: package
156156
echo "Please set GH_TOKEN environment variable or create .netrc with GitHub credentials."; \
157157
exit 1; \
158158
fi; \
159-
GITHUB_TOKEN=$(grep "machine github.com" ~/.netrc | grep "password" | awk '{print $6}') && \
159+
GITHUB_TOKEN=$(grep "machine github.com" ~/.netrc | grep "password" | awk '{print $6}' | head -1) && \
160160
if [ -z "$GITHUB_TOKEN" ]; then \
161161
echo "Error: GitHub token not found in .netrc file."; \
162162
echo "Please ensure your .netrc contains a 'machine github.com' entry with a password or set GH_TOKEN."; \

0 commit comments

Comments
 (0)