Skip to content

Commit

Permalink
Allow users to add a label onto update PRs (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
ferozco authored Apr 28, 2023
1 parent d4202d8 commit c0b5ef8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ inputs:
description: the title to use for the PR
required: true
default: Auto-update dependencies and plugins
label:
description: The name of a label to add to the PR

runs:
using: composite
Expand Down Expand Up @@ -77,5 +79,9 @@ runs:
# update the PR body to set versions if different than creation
gh pr edit --body "${BODY}"
if [ -n "${{ inputs.label }}" ];
then
gh pr edit --add-label "${{ inputs.label }}"
fi
env:
GITHUB_TOKEN: "${{ inputs.push-to-repo-token }}"

0 comments on commit c0b5ef8

Please sign in to comment.