Skip to content

Commit

Permalink
Uses outputs.text to get the value
Browse files Browse the repository at this point in the history
  • Loading branch information
joergi committed Jun 13, 2024
1 parent 77e7625 commit 45d9586
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/auto-merge-dependabot-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,26 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

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

- name: Find Pull Request
uses: juliangruber/find-pull-request-action@v1
id: find-pull-request
with:
branch: ${{ steps.find_branch_name.outputs }}
branch: ${{ steps.find_branch_name.outputs.text }}


- run: echo "Pull Request ${number} "
env:
number: ${{ steps.find-pull-request.outputs.number }}

- name: Auto approve
id: autoApprove
if: steps.createAutoPR.outputs.pull-request-operation == 'created'
uses: juliangruber/approve-pull-request-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
number: echo ${{ steps.find_branch_name.outputs }}
number: echo ${{ steps.find_branch_name.outputs.text }}

- name: Enable auto-merge
run: |
Expand Down

0 comments on commit 45d9586

Please sign in to comment.