[CLN] set the repo name dynamically #1

Merged
stephansainleger merged 1 commits from 16.0-clean-config into 16.0 2025-09-17 13:38:18 +00:00
2 changed files with 16 additions and 12 deletions

View File

@@ -15,10 +15,10 @@ jobs:
python-version: "3.11" python-version: "3.11"
- name: Get python version - name: Get python version
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
- uses: actions/cache@v4 # - uses: actions/cache@v4
with: # with:
path: ~/.cache/pre-commit # path: ~/.cache/pre-commit
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }} # key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
- name: Install pre-commit - name: Install pre-commit
run: pip install pre-commit run: pip install pre-commit
- name: Run pre-commit - name: Run pre-commit

View File

@@ -44,15 +44,19 @@ repos:
# update the NOT INSTALLABLE ADDONS section above # update the NOT INSTALLABLE ADDONS section above
- id: oca-update-pre-commit-excluded-addons - id: oca-update-pre-commit-excluded-addons
- id: oca-fix-manifest-website - id: oca-fix-manifest-website
args: ["https://git.elabore.coop/elabore/{REPO_NAME}"] entry:
bash -c 'oca-fix-manifest-website "https://git.elabore.coop/elabore/$(basename
$(git rev-parse --show-toplevel))"'
- id: oca-gen-addon-readme - id: oca-gen-addon-readme
args: entry:
- --addons-dir=. bash -c 'oca-gen-addon-readme
- --branch=16.0 --addons-dir=.
- --org-name=OCA --branch=$(git symbolic-ref
- --repo-name=helpdesk-tools refs/remotes/origin/HEAD | sed "s@^refs/remotes/origin/@@")
- --if-source-changed --repo-name=$(basename $(git rev-parse --show-toplevel))
- --keep-source-digest --org-name="Elabore"
--if-source-changed --keep-source-digest'
- repo: https://github.com/OCA/odoo-pre-commit-hooks - repo: https://github.com/OCA/odoo-pre-commit-hooks
rev: v0.1.4 rev: v0.1.4
hooks: hooks: