From 669568330777fcf163b6c11ff021ab4cf35a2776 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Canouil?= <8896044+mcanouil@users.noreply.github.com> Date: Fri, 5 Jul 2024 23:22:18 +0200 Subject: [PATCH] ci: rm leading + in diff --- .github/workflows/check-extensions.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check-extensions.yml b/.github/workflows/check-extensions.yml index c375249..941ed71 100644 --- a/.github/workflows/check-extensions.yml +++ b/.github/workflows/check-extensions.yml @@ -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") @@ -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")