Skip to content

Commit

Permalink
automerge on ci
Browse files Browse the repository at this point in the history
  • Loading branch information
fsubal committed Dec 28, 2023
1 parent 8f051df commit 5a3a012
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 23 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/auto-merge.yml

This file was deleted.

20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:
- cron: "0 0 * * *"
workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -37,3 +41,19 @@ jobs:
echo "::warning:: Looks like tailwind build has unexpected warnings"
exit 1
fi
automerge:
runs-on: ubuntu-latest
needs: build
if: github.actor == 'dependabot[bot]'
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 5a3a012

Please sign in to comment.