From 91bb7f9042f75fb322d37021adf98fce47ead89e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Thu, 3 Oct 2024 16:04:38 +0200 Subject: [PATCH] CI updates This is done by the automated script named upgrade-c2cciutils-to-1.7 --- .github/renovate.json5 | 12 ++++++++++++ .github/workflows/clean.yaml | 6 ++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/renovate.json5 b/.github/renovate.json5 index a8b4df0b1..da0364e03 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -31,6 +31,13 @@ ], datasourceTemplate: 'github-tags', }, + /** Python version in actions/setup-python action */ + { + fileMatch: ['^\\.github/workflows/.*\\.yaml$'], + matchStrings: [' python-version: [\'"](?[0-9\\.]+)[\'"]'], + datasourceTemplate: 'python-version', + depNameTemplate: 'python', + }, ], packageRules: [ /** Auto merge the dev dependency update */ @@ -85,5 +92,10 @@ matchBaseBranches: ['/^[0-9]+\\.[0-9]+$/', '/release_.*/'], minimumReleaseAge: '7 days', }, + /** Ungroup Python dependencies */ + { + matchDepNames: ['python'], + groupName: 'Python', + }, ], } diff --git a/.github/workflows/clean.yaml b/.github/workflows/clean.yaml index 57809ec51..2ffbff28a 100644 --- a/.github/workflows/clean.yaml +++ b/.github/workflows/clean.yaml @@ -21,8 +21,10 @@ jobs: github-gopass-ci-token: ${{secrets.GOPASS_CI_GITHUB_TOKEN}} patterns: docker - - run: echo "${HOME}/.local/bin" >> ${GITHUB_PATH} - - run: python3 -m pip install --user --requirement=ci/requirements.txt + - uses: actions/setup-python@v5 + with: + python-version: '3.11' + - run: python3 -m pip install --requirement=ci/requirements.txt - name: Clean Docker hub tags run: c2cciutils-clean