Skip to content

Commit

Permalink
Remove second conditional to always use git+
Browse files Browse the repository at this point in the history
  • Loading branch information
kraftbj committed Jan 15, 2025
1 parent cd25de8 commit 21d5db4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/files/lint-project-structure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ for PROJECT in projects/*/*; do
echo "::error file=$PROJECT/package.json${LINE:-$LINE2}::Set \`.repository.type\` to \"git\", as the monorepo is a git repository."
fi
URL="$(jq -r '.url' <<<"$JSON")"
if [[ "$URL" != "git+https://github.com/Automattic/jetpack.git" && "$URL" != "https://github.com/Automattic/jetpack" ]]; then
if [ "$URL" != "git+https://github.com/Automattic/jetpack.git" ]; then
EXIT=1
LINE=$(jq --stream -r 'if length == 1 then .[0][:-1] else .[0] end | if . == ["repository","url"] then ",line=\( input_line_number )" else empty end' "$PROJECT/package.json")
echo "::error file=$PROJECT/package.json${LINE:-$LINE2}::Set \`.repository.url\` to point to the monorepo, i.e. \"https://github.com/Automattic/jetpack\"."
Expand Down

0 comments on commit 21d5db4

Please sign in to comment.