Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/update_templates.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Update Django Templates

on:
schedule:
- cron: "0 6 * * 1"
workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:
update-templates:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v3

- name: Install just
uses: extractions/setup-just@v2

- name: Set up Python
run: uv python install

- name: Run update_templates
run: just update_templates

- name: Open PR if templates changed
uses: peter-evans/create-pull-request@v7
with:
branch: chore/update-django-templates
commit-message: "chore: update Django templates"
title: "chore: update Django templates"
body: |
Automated PR to update the Django project templates.

Generated by the [Update Django Templates](../actions/workflows/update_templates.yml) workflow.
labels: dependencies
delete-branch: true
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,6 @@ cython_debug/
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
/test_project_6d54gr/

# OS generated files
**/.DS_Store