From 32fa5cfa502b9fc0ea0f808db2c38eb76a063164 Mon Sep 17 00:00:00 2001 From: Francesco Novy Date: Thu, 20 Apr 2023 17:28:45 +0200 Subject: [PATCH] ci: Finally fix auto-merge for gitflow --- .github/workflows/gitflow-sync-develop.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gitflow-sync-develop.yml b/.github/workflows/gitflow-sync-develop.yml index 43cf9374fd2b..bf9ba8feaf9a 100644 --- a/.github/workflows/gitflow-sync-develop.yml +++ b/.github/workflows/gitflow-sync-develop.yml @@ -39,13 +39,13 @@ jobs: github_token: ${{ secrets.REPO_SCOPED_TOKEN }} - name: Enable automerge for PR - run: gh pr merge --merge --auto "1" + if: steps.open-pr.outputs.pr_number != '' + run: gh pr merge --merge --auto "${{ steps.open-pr.outputs.pr_number }}" env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # https://github.com/marketplace/actions/auto-approve - name: Auto approve PR - # Always skip this for now, until we got a proper bot setup if: steps.open-pr.outputs.pr_number != '' uses: hmarr/auto-approve-action@v3 with: