From faf8827e728fbb7e23ac54eb9b96c83931c324f4 Mon Sep 17 00:00:00 2001 From: Will Murphy Date: Mon, 18 Dec 2023 09:22:00 -0500 Subject: [PATCH] chore: fix dependabot author check Apparently GH actions scripts run with set -e, so the search miss on this grep was causing the entire action to fail. Signed-off-by: Will Murphy --- .github/workflows/dependabot-auto-merge.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dependabot-auto-merge.yaml b/.github/workflows/dependabot-auto-merge.yaml index 83f9b91..6ffdde0 100644 --- a/.github/workflows/dependabot-auto-merge.yaml +++ b/.github/workflows/dependabot-auto-merge.yaml @@ -20,7 +20,7 @@ jobs: - name: Check whether anyone besides dependabot has pushed id: pr_author run: | - EXTRA_AUTHORS=$(gh pr view "$PR_URL" --json commits --jq '.commits[] | .authors[] | .login' | sort | uniq | grep -v dependabot) + EXTRA_AUTHORS=$(gh pr view "$PR_URL" --json commits --jq '.commits[] | .authors[] | .login' | sort | uniq | grep -v dependabot || echo -n '') if [ -n "$EXTRA_AUTHORS" ]; then echo "PR has authors in addition to dependabot: $EXTRA_AUTHORS" echo "human_pushed=true" >> "$GITHUB_OUTPUT"