From 6e3953e425cc0378a31583d507932fc236180060 Mon Sep 17 00:00:00 2001 From: Michael Nikitochkin Date: Wed, 10 May 2023 21:14:27 +0200 Subject: [PATCH] Move github action to workflows folder --- .github/{ => workflows}/dependabot-auto-merge.yml | 9 +++++++++ 1 file changed, 9 insertions(+) rename .github/{ => workflows}/dependabot-auto-merge.yml (85%) diff --git a/.github/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml similarity index 85% rename from .github/dependabot-auto-merge.yml rename to .github/workflows/dependabot-auto-merge.yml index aa0c2ba7..b305e033 100644 --- a/.github/dependabot-auto-merge.yml +++ b/.github/workflows/dependabot-auto-merge.yml @@ -9,6 +9,10 @@ permissions: contents: write pull-requests: write +env: + ACTIONS_RUNNER_DEBUG: true + ACTIONS_STEP_DEBUG: true + jobs: dependabot: runs-on: ubuntu-latest @@ -19,12 +23,17 @@ jobs: uses: dependabot/fetch-metadata@v1 with: github-token: "${{ secrets.GITHUB_TOKEN }}" + + - name: Debug outputs variable + run: echo ${{steps.dependabot-metadata.outputs.directory}} + - name: Approve a PR if: ${{contains(steps.dependabot-metadata.outputs.directory, '/test')}} run: gh pr review --approve "$PR_URL" env: PR_URL: ${{github.event.pull_request.html_url}} GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + - name: Enable auto-merge for Dependabot PRs if: success() run: gh pr merge --auto --merge "$PR_URL"