We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e16b0f0 commit 051881eCopy full SHA for 051881e
.github/workflows/dependabot-merger.yml
@@ -48,7 +48,9 @@ jobs:
48
run: |
49
NEW_BRANCH="dependabot-test-${{ steps.datetime.outputs.date }}"
50
git checkout $NEW_BRANCH
51
- PR_LIST="${{ steps.pr_list.outputs.numbers }}"
+ 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"
54
while IFS= read -r line; do
55
IFS=' ' read -r PR_NUMBER BRANCH_NAME <<< "$line"
56
echo "Merging PR #$PR_NUMBER from branch $BRANCH_NAME into $NEW_BRANCH..."
0 commit comments