Skip to content
This repository was archived by the owner on Apr 26, 2025. It is now read-only.

Commit 850eb7e

Browse files
Update and rename test.yml to test_and_merge.yml
1 parent 467edd1 commit 850eb7e

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/test.yml renamed to .github/workflows/test_and_merge.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Full Test
1+
name: Full Test and Merge
22

33
on:
44
push:
@@ -37,3 +37,19 @@ jobs:
3737
run: pip install pytest pytest-asyncio pytest-django psycopg django-ninja
3838
- name: Test
3939
run: pytest .
40+
41+
dependabot:
42+
runs-on: ubuntu-latest
43+
needs: [test]
44+
if: github.actor == 'dependabot[bot]'
45+
steps:
46+
- name: Dependabot metadata
47+
id: metadata
48+
uses: dependabot/fetch-metadata@v2
49+
with:
50+
github-token: "${{ secrets.GITHUB_TOKEN }}"
51+
- name: Enable auto-merge for Dependabot PRs
52+
run: gh pr merge --auto --merge "$PR_URL"
53+
env:
54+
PR_URL: ${{github.event.pull_request.html_url}}
55+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)