Skip to content

Commit 051881e

Browse files
Update dependabot-merger.yml
1 parent e16b0f0 commit 051881e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/dependabot-merger.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ jobs:
4848
run: |
4949
NEW_BRANCH="dependabot-test-${{ steps.datetime.outputs.date }}"
5050
git checkout $NEW_BRANCH
51-
PR_LIST="${{ steps.pr_list.outputs.numbers }}"
51+
PR_LIST=$(gh pr list --json number,headRefName --jq '.[] | "\(.number) \(.headRefName)"' | grep dependabot)
52+
PR_LIST=$(echo "$PR_LIST" | tr -d '\r') # Remove trailing newline
53+
echo "::set-output name=numbers::$PR_LIST"
5254
while IFS= read -r line; do
5355
IFS=' ' read -r PR_NUMBER BRANCH_NAME <<< "$line"
5456
echo "Merging PR #$PR_NUMBER from branch $BRANCH_NAME into $NEW_BRANCH..."

0 commit comments

Comments
 (0)