From 77fa7d1a19395c7e18d3a8f44f4e11f930a6f5ec Mon Sep 17 00:00:00 2001 From: Jonathan Johnson Date: Thu, 15 Aug 2024 22:41:01 -0700 Subject: [PATCH] Fix Test in Automerge -z returns true if the string is empty, I needed -n here. --- .github/workflows/dependabot-automerge.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dependabot-automerge.yml b/.github/workflows/dependabot-automerge.yml index 8a1a9e49b5..be75eef7fb 100644 --- a/.github/workflows/dependabot-automerge.yml +++ b/.github/workflows/dependabot-automerge.yml @@ -25,7 +25,7 @@ jobs: echo ${{ env.isSafe }} echo ${{ env.isNotMajor }} - id: should_merge - run: (test -z ${{env.isSafe}} && test -z ${{env.isNotMajor}}) && echo "shouldMerge=yes" >> "$GITHUB_OUTPUT" + run: (test -n ${{env.isSafe}} && test -n ${{env.isNotMajor}}) && echo "shouldMerge=yes" >> "$GITHUB_OUTPUT" auto_merge: runs-on: ubuntu-latest needs: check