feat(4266): universal dependabot pr #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |