From 4ac904c241f05a2560e5fa327bb034978138185d Mon Sep 17 00:00:00 2001 From: bosd Date: Fri, 15 Nov 2024 23:18:53 +0100 Subject: [PATCH 1/2] Update actions V3 to V4 in workflow --- src/.github/workflows/pre-commit.yml.jinja | 2 +- .../{% if ci == 'GitHub' %}test.yml{% endif %}.jinja | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/.github/workflows/pre-commit.yml.jinja b/src/.github/workflows/pre-commit.yml.jinja index 40aecf0..9554ede 100644 --- a/src/.github/workflows/pre-commit.yml.jinja +++ b/src/.github/workflows/pre-commit.yml.jinja @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-22.04 {%- endif %} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-python@v2 {%- if odoo_version < 11 %} with: diff --git a/src/.github/workflows/{% if ci == 'GitHub' %}test.yml{% endif %}.jinja b/src/.github/workflows/{% if ci == 'GitHub' %}test.yml{% endif %}.jinja index fd5fc6e..0c76f66 100644 --- a/src/.github/workflows/{% if ci == 'GitHub' %}test.yml{% endif %}.jinja +++ b/src/.github/workflows/{% if ci == 'GitHub' %}test.yml{% endif %}.jinja @@ -58,7 +58,7 @@ jobs: runs-on: ubuntu-latest name: Detect unreleased dependencies steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - run: | for reqfile in requirements.txt test-requirements.txt ; do if [ -f ${reqfile} ] ; then @@ -141,7 +141,7 @@ jobs: {%- endfor %} {%- endif %} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: persist-credentials: false - name: Install addons and dependencies From fff26ca5ff2601f1d9828d971b5d4b60f2402d69 Mon Sep 17 00:00:00 2001 From: bosd Date: Fri, 15 Nov 2024 23:22:14 +0100 Subject: [PATCH 2/2] Update setup-python to v5 To silence the warning message: The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-python@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/ --- src/.github/workflows/pre-commit.yml.jinja | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/.github/workflows/pre-commit.yml.jinja b/src/.github/workflows/pre-commit.yml.jinja index 9554ede..976ad8f 100644 --- a/src/.github/workflows/pre-commit.yml.jinja +++ b/src/.github/workflows/pre-commit.yml.jinja @@ -18,7 +18,7 @@ jobs: {%- endif %} steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v5 {%- if odoo_version < 11 %} with: python-version: "2.7"