From 7d89374e304d0e979ad34484fb41c4369d20f3f1 Mon Sep 17 00:00:00 2001 From: Gabriel Dugny Date: Thu, 25 Jan 2024 16:23:37 +0100 Subject: [PATCH] ci: enable PDM lockfile updates --- ..._python_deps.yml.disabled => sync_python_deps.yml} | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) rename .github/workflows/{sync_python_deps.yml.disabled => sync_python_deps.yml} (83%) diff --git a/.github/workflows/sync_python_deps.yml.disabled b/.github/workflows/sync_python_deps.yml similarity index 83% rename from .github/workflows/sync_python_deps.yml.disabled rename to .github/workflows/sync_python_deps.yml index f746d3aa..45ebe1d6 100644 --- a/.github/workflows/sync_python_deps.yml.disabled +++ b/.github/workflows/sync_python_deps.yml @@ -4,9 +4,13 @@ name: Update Python dependencies with PDM on: schedule: - - cron: "0 0 * * *" + - cron: "0 12 * * *" workflow_dispatch: +permissions: + contents: write + pull-requests: write + jobs: update-dependencies: runs-on: ubuntu-latest @@ -14,11 +18,10 @@ jobs: - uses: actions/checkout@v4 - name: Update dependencies with PDM - # XXX Use the upstream version when repository is not private uses: pdm-project/update-deps-action@main with: # The personal access token, default: ${{ github.token }} - token: ${{ secrets.GH_TOKEN }} + token: ${{ github.token }} # The commit message" commit-message: "chore(deps): Update pdm.lock" # The PR title @@ -26,6 +29,6 @@ jobs: # The update strategy, can be 'reuse', 'eager' or 'all' update-strategy: all # Whether to install PDM plugins before update - install-plugins: "false" + install-plugins: "true" # Whether commit message contains signed-off-by sign-off-commit: "true"