Skip to content

Commit

Permalink
fix(automerge): Expose "force" and "strategy" as env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
wmentzel committed Mar 10, 2024
1 parent 6f9a65e commit ff8cf9e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/template_automerge_dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
MERGE_OPTIONS=()
case "$strategy" in
case "${{ env.STRATEGY }}" in
"rebase")
MERGE_OPTIONS+=("--rebase")
;;
Expand All @@ -62,7 +62,7 @@ jobs:
;;
esac
if [ "$force" == 'true' ]; then
if [ "${{ env.FORCE }}" == 'true' ]; then
MERGE_OPTIONS+=("--admin")
else
MERGE_OPTIONS+=("--auto")
Expand All @@ -73,3 +73,5 @@ jobs:
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ steps.get_token.outputs.token }}
STRATEGY: ${{ inputs.strategy }}
FORCE: ${{ inputs.force }}

0 comments on commit ff8cf9e

Please sign in to comment.