Skip to content

Commit

Permalink
Add mergeArguments workflow input (#7)
Browse files Browse the repository at this point in the history
Allow specifying custom `gh pr merge` arguments
  • Loading branch information
marcusdacoregio authored Jan 25, 2024
1 parent d108e7e commit eaf17a1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/spring-merge-dependabot-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ on:
default: 'type: dependency-upgrade'
required: false
type: string
mergeArguments:
description: 'The arguments to pass to the gh pr merge command'
default: '--auto --squash'
required: false
type: string

env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -72,4 +77,4 @@ jobs:
- name: Merge Dependabot pull request
if: steps.set-milestone.outputs.mergeEnabled
run: gh pr merge ${{ github.event.pull_request.number }} --auto --squash
run: gh pr merge ${{ github.event.pull_request.number }} ${{ inputs.mergeArguments }}

0 comments on commit eaf17a1

Please sign in to comment.