From ff8cf9eb4f401c068353bc16b955524cf5c72c86 Mon Sep 17 00:00:00 2001 From: Willi Mentzel Date: Sun, 10 Mar 2024 20:31:50 +0100 Subject: [PATCH] fix(automerge): Expose "force" and "strategy" as env variables --- .github/workflows/template_automerge_dependabot.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/template_automerge_dependabot.yml b/.github/workflows/template_automerge_dependabot.yml index c9d49586..484b849e 100644 --- a/.github/workflows/template_automerge_dependabot.yml +++ b/.github/workflows/template_automerge_dependabot.yml @@ -50,7 +50,7 @@ jobs: MERGE_OPTIONS=() - case "$strategy" in + case "${{ env.STRATEGY }}" in "rebase") MERGE_OPTIONS+=("--rebase") ;; @@ -62,7 +62,7 @@ jobs: ;; esac - if [ "$force" == 'true' ]; then + if [ "${{ env.FORCE }}" == 'true' ]; then MERGE_OPTIONS+=("--admin") else MERGE_OPTIONS+=("--auto") @@ -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 }}