Skip to content

Commit

Permalink
ci: rm leading + in diff
Browse files Browse the repository at this point in the history
  • Loading branch information
mcanouil committed Jul 5, 2024
1 parent 5f3c856 commit 6695683
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 @@ -53,7 +53,7 @@ jobs:
error=false
add_extension=$(gh pr view "${NUMBER}" --json files --jq '.files[] | select(.path == "extensions/quarto-extensions.csv")')
if [[ -n "${add_extension}" ]]; then
gh pr diff ${NUMBER} --patch | awk '/\+\+\+ b\/extensions\/quarto-extensions\.csv/{flag=1; next} flag && /^\+/' > diff.patch
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
repo_topics=$(gh repo view --json repositoryTopics "${repo}" --jq ".repositoryTopics")
Expand All @@ -77,7 +77,7 @@ jobs:
error=false
add_extension=$(gh pr view "${NUMBER}" --json files --jq '.files[] | select(.path == "extensions/quarto-extensions.csv")')
if [[ -n "${add_extension}" ]]; then
gh pr diff ${NUMBER} --patch | awk '/\+\+\+ b\/extensions\/quarto-extensions\.csv/{flag=1; next} flag && /^\+/' > diff.patch
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
repo_description=$(gh repo view --json description "${repo}" --jq ".description")
Expand Down

0 comments on commit 6695683

Please sign in to comment.