Replace peter-evans/create-pull-request with a Gitea API script that commits, pushes, and opens the deps update PR. Co-authored-by: Cursor <[email protected]>
35 lines
860 B
YAML
35 lines
860 B
YAML
name: Dependency Update Bot
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "0 3 * * 1" # Every Monday at 03:00 UTC
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
update-check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
token: ${{ secrets.CI_RUNNER_TOKEN }}
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version-file: .python-version
|
|
|
|
- name: Install uv
|
|
run: pip install uv
|
|
|
|
- name: Upgrade dependencies
|
|
run: uv lock --upgrade
|
|
|
|
- name: Commit and push changes
|
|
env:
|
|
API_URL: ${{ vars.API_URL }}
|
|
REPO_OWNER: ${{ github.repository_owner }}
|
|
REPO_NAME: ${{ github.event.repository.name }}
|
|
CI_RUNNER_TOKEN: ${{ secrets.CI_RUNNER_TOKEN }}
|
|
run: scripts/ci/create-deps-update-pr.sh
|