From e788f80121a5e37b576630b7ae5a274d83b90d1c Mon Sep 17 00:00:00 2001 From: zack Date: Sun, 20 Oct 2024 01:33:06 -0400 Subject: [PATCH] update existing pr --- .github/workflows/update.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 5c48852..488e403 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -23,7 +23,7 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - existing_pr=$(gh pr list --repo ${{ github.repository }} --head "auto-update-flake-" --state open --json number --jq '.[0].number') + existing_pr=$(gh pr list --repo ${{ github.repository }} --state open --json number,headRefName --jq '.[] | select(.headRefName | startswith("auto-update-flake")) | .number' | head -n1) echo "$existing_pr" if [ -n "$existing_pr" ]; then echo "pr_exists=true" >> $GITHUB_OUTPUT