Skip to content

Commit

Permalink
ci: keep repo/owner only for checks (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcanouil authored Nov 11, 2024
1 parent f4a9dea commit 71b5b33
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/check-extensions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
gh pr diff ${NUMBER} --patch | awk '/\+\+\+ b\/extensions\/quarto-extensions\.csv/{flag=1; next} flag && /^\+/' | sed 's/^+//' > diff.patch
if [[ -s diff.patch ]]; then
while IFS=, read -r repo; do
repo=$(echo "$repo" | cut -d'/' -f1-2)
repo_topics=$(gh repo view --json repositoryTopics "${repo}" --jq ".repositoryTopics")
if [[ -z "${repo_topics}" ]]; then
lineNumber=$(grep -n "${repo}" ${FILE} | cut -d: -f1)
Expand All @@ -83,6 +84,7 @@ jobs:
gh pr diff ${NUMBER} --patch | awk '/\+\+\+ b\/extensions\/quarto-extensions\.csv/{flag=1; next} flag && /^\+/' | sed 's/^+//' > diff.patch
if [[ -s diff.patch ]]; then
while IFS=, read -r repo; do
repo=$(echo "$repo" | cut -d'/' -f1-2)
repo_description=$(gh repo view --json description "${repo}" --jq ".description")
if [[ -z "${repo_description}" ]]; then
lineNumber=$(grep -n "${repo}" ${FILE} | cut -d: -f1)
Expand Down

0 comments on commit 71b5b33

Please sign in to comment.