Skip to content

Commit

Permalink
Dependabot Action
Browse files Browse the repository at this point in the history
  • Loading branch information
drernie committed Dec 24, 2024
1 parent 1d635b6 commit 39ebbcd
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
on:
push:
branches:
- master
- dependabot-updates # Add Dependabot updates branch
tags:
- "*"
pull_request:

jobs:
dependabot-auto-merge:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/dependabot-updates'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
python -m pip install -r requirements.txt
- name: Run tests
run: pytest
- name: Auto-merge into integration branch
if: success()
run: |
git config user.name "devops-automation[bot]"
git config user.email "[email protected]"
git checkout -b dependabot-integration
git merge --no-ff dependabot-updates -m "Auto-merge Dependabot updates"
git push origin dependabot-integration

0 comments on commit 39ebbcd

Please sign in to comment.