Files
birdcam/.gitea/workflows/dependency_update.yml
Andrew Kettel 637766a946
All checks were successful
CI / black (pull_request) Successful in 1m16s
CI / ruff (pull_request) Successful in 1m17s
CI / mypy (pull_request) Successful in 1m24s
CI / pytest (pull_request) Successful in 1m19s
Updating runners to checkout
2026-03-26 13:08:02 -07:00

47 lines
1.3 KiB
YAML

name: Dependency update
on:
push:
branches: [main]
schedule:
- cron: "0 9 * * 1"
jobs:
dependency-update:
runs-on: ubuntu-latest
container: python:3.13-slim
if: "!startsWith(github.ref, 'refs/heads/dependency-updates-')"
steps:
- name: Checkout
run: |
apt-get update -qq && apt-get install -y -qq git curl
git clone ${{ github.server_url }}/${{ github.repository }} .
git checkout ${{ github.sha }}
- name: Install system dependencies
run: apt-get install -y -qq libcap-dev
- name: Install Poetry and dependencies
run: |
pip install poetry==2.1.1
poetry install --without pi --no-interaction
- name: Run dependency update check
id: update
run: |
chmod +x scripts/dependency_update.sh
set +e
bash scripts/dependency_update.sh
echo "changes=$?" >> $GITHUB_OUTPUT
- name: Create pull request
if: steps.update.outputs.changes == '1'
env:
CI_TOKEN: ${{ secrets.CI_TOKEN }}
CI_SERVER_URL: ${{ secrets.CI_SERVER_URL }}
REPO: ${{ github.repository }}
CI_ASSIGNEE_ID: ${{ secrets.CI_ASSIGNEE_ID }}
run: |
chmod +x scripts/create_pr_gitea.sh
bash scripts/create_pr_gitea.sh