Expose the number of the opened PR

This commit is contained in:
Cole Helbling 2022-04-21 11:56:41 -07:00 committed by Cole Helbling
parent 614f33eec2
commit c58b7816fa
1 changed files with 5 additions and 0 deletions

View File

@ -21,6 +21,10 @@ inputs:
description: 'A comma or newline separated list of labels to set on the Pull Request to be created' description: 'A comma or newline separated list of labels to set on the Pull Request to be created'
required: false required: false
default: '' default: ''
outputs:
pull-request-number:
description: 'The number of the opened pull request'
value: ${{ steps.create-pr.outputs.pull-request-number }}
runs: runs:
using: "composite" using: "composite"
steps: steps:
@ -42,6 +46,7 @@ runs:
shell: bash shell: bash
id: commit_message id: commit_message
- name: Create PR - name: Create PR
id: create-pr
uses: peter-evans/create-pull-request@v3 uses: peter-evans/create-pull-request@v3
with: with:
branch: update_flake_lock_action branch: update_flake_lock_action