Skip to content

Commit

Permalink
feat(automerge): simplify command logic
Browse files Browse the repository at this point in the history
Co-authored-by: Sören Mothes <[email protected]>
  • Loading branch information
ingvaar and soemo authored Feb 2, 2024
1 parent 8cc264e commit afcfdec
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/template_automerge_dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,14 @@ jobs:
MERGE_COMMAND="gh pr merge \"$PR_URL\""
if [ "${{ inputs.force }}" == 'true' ] && [ "${{ inputs.rebase }}" == 'true' ]; then
MERGE_COMMAND+=" --rebase --admin"
elif [ "${{ inputs.force }}" == 'true' ]; then
MERGE_COMMAND+=" --squash --admin"
elif [ "${{ inputs.rebase }}" == 'true' ]; then
if [ "${{ inputs.rebase }}" == 'true' ]; then
MERGE_COMMAND+=" --rebase"
else
MERGE_COMMAND+=" --squash"
fi
if [ ${{ inputs.force }} == 'true' ]; then
MERGE_COMMAND+=" --admin"
fi

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

View workflow job for this annotation

GitHub Actions / yamllint / yamllint

trailing spaces (trailing-spaces)
else
MERGE_COMMAND+=" --auto --merge"
fi
Expand Down

0 comments on commit afcfdec

Please sign in to comment.