[REF] use single main branch with per-version config directories
Replace per-branch versioning (16.0, 18.0...) with a single main branch containing version-specific subdirectories under config/. Structure: - config/common/: shared files deployed to all versions - config/16.0/: Odoo 16.0 specific configs (pylintrc, ruff, pre-commit) The deploy workflow now: - Triggers on push to main - Auto-detects available versions from config/*/ - For each target repo, deploys common + version-specific files Also enables Gitea native cache in pre-commit workflow.
This commit is contained in:
@@ -2,8 +2,6 @@ name: pre-commit
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- "16.0*"
|
||||
|
||||
jobs:
|
||||
pre-commit:
|
||||
@@ -15,7 +13,7 @@ jobs:
|
||||
python-version: "3.11"
|
||||
- name: Get python version
|
||||
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
|
||||
- uses: actions/cache@v4
|
||||
- uses: https://gitea.com/actions/cache@v3
|
||||
with:
|
||||
path: ~/.cache/pre-commit
|
||||
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
|
||||
Reference in New Issue
Block a user