Skip to content

Commit

Permalink
Uses correct branch
Browse files Browse the repository at this point in the history
  • Loading branch information
joergi committed Jun 13, 2024
1 parent 8863173 commit 77e7625
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/auto-merge-dependabot-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,22 @@ jobs:
pull-requests: write
steps:
- uses: actions/checkout@v4.1.4

- name: find_branch_name
id: find_branch_name
run: |
gh repo view --json nameWithOwner,defaultBranchRef | jq -r '.defaultBranchRef.name'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: echo branch name
run: echo ${{ steps.find_branch_name.outputs }}

- name: Find Pull Request
uses: juliangruber/find-pull-request-action@v1
id: find-pull-request
with:
branch: my-branch-name
branch: ${{ steps.find_branch_name.outputs }}
- run: echo "Pull Request ${number} "
env:
number: ${{ steps.find-pull-request.outputs.number }}
Expand Down

0 comments on commit 77e7625

Please sign in to comment.