Skip to content

Commit

Permalink
🎨 Force automerge as admin
Browse files Browse the repository at this point in the history
  • Loading branch information
flaxel committed Nov 9, 2023
1 parent 3a2d596 commit 92f64c2
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/template_automerge_dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: Dependabot Auto-Merge

on:
workflow_call:
inputs:
admin:
default: 'false'
required: false
type: boolean
secrets:
app_id:
required: true
Expand Down Expand Up @@ -35,7 +40,12 @@ jobs:
if: steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor'
run: |
gh pr review --approve "$PR_URL"
gh pr merge --auto --merge "$PR_URL"

Check failure on line 43 in .github/workflows/template_automerge_dependabot.yml

View workflow job for this annotation

GitHub Actions / yamllint / yamllint

trailing spaces (trailing-spaces)
if [ ${{ inputs.admin }} == 'true' ]; then
gh pr merge "$PR_URL" --merge --admin
else
gh pr merge --auto --merge "$PR_URL"
fi
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ steps.get_token.outputs.token }}

0 comments on commit 92f64c2

Please sign in to comment.