Skip to content

Commit

Permalink
ci: Remove category from topics/description CSV structure (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcanouil authored Jul 5, 2024
1 parent 0f12ce6 commit 339a6e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check-extensions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
if [[ -n "${add_extension}" ]]; then
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 category repo; do
while IFS=, read -r repo; do
repo_topics=$(gh repo view --json repositoryTopics "${repo}" --jq ".repositoryTopics")
if [[ -z "${repo_topics}" ]]; then
echo "::error file=extensions/quarto-extensions.csv::Repository '${repo}' is missing topics!"
Expand All @@ -79,7 +79,7 @@ jobs:
if [[ -n "${add_extension}" ]]; then
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 category repo; do
while IFS=, read -r repo; do
repo_description=$(gh repo view --json description "${repo}" --jq ".description")
if [[ -z "${repo_description}" ]]; then
echo "::error file=extensions/quarto-extensions.csv::Repository '${repo}' is missing description!"
Expand Down

0 comments on commit 339a6e6

Please sign in to comment.