From 8263db8047c83f7f0b440bcf5f3433834a93c2f6 Mon Sep 17 00:00:00 2001 From: Marco Link Date: Sun, 30 Jun 2024 19:05:19 +0200 Subject: [PATCH] chore: add dependabot auto-merge (#12) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit
📦 Published PR as canary version: 0.0.20--canary.12.7a6b862.0
:sparkles: Test out this PR locally via: ```bash npm install storybook-addon-contentful-preview@0.0.20--canary.12.7a6b862.0 # or yarn add storybook-addon-contentful-preview@0.0.20--canary.12.7a6b862.0 ```
--- .github/workflows/dependabot-auto-merge.yml | 24 +++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/dependabot-auto-merge.yml diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml new file mode 100644 index 0000000..5776b48 --- /dev/null +++ b/.github/workflows/dependabot-auto-merge.yml @@ -0,0 +1,24 @@ +name: Dependabot auto-merge +on: pull_request + +permissions: + contents: write + pull-requests: write + +jobs: + dependabot: + runs-on: ubuntu-latest + if: github.actor == 'dependabot[bot]' + steps: + - name: Dependabot metadata + id: metadata + uses: dependabot/fetch-metadata@v2 + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" + - name: Enable auto-merge for Dependabot PRs + if: steps.metadata.outputs.update-type == 'version-update:semver-minor' && steps.metadata.outputs.update-type == 'version-update:semver-patch' + # contains(steps.metadata.outputs.dependency-names, 'my-dependency') + run: gh pr merge --auto --merge "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GH_TOKEN: ${{secrets.GITHUB_TOKEN}} \ No newline at end of file