Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
code

GitHub Action

PDM update dependencies

v1.1

PDM update dependencies

code

PDM update dependencies

Update the pdm.lock file

Installation

Copy and paste the following snippet into your .yml file.

              

- name: PDM update dependencies

uses: pdm-project/update-deps-action@v1.1

Learn more about this action in pdm-project/update-deps-action

Choose a version

PDM update dependencies GitHub Action

Usage

Example workflow:

name: Update dependencies

on:
  schedule:
    cron: "0 0 * * * *"

jobs:
  update-dependencies:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3

      - name: Update dependencies
        uses: pdm-project/update-deps-action@main

Inputs

with:
  # The personal access token, default: ${{ github.token }}
  token: ${{ secrets.GH_TOKEN }}
  # The commit message"
  commit-message: "chore: Update pdm.lock"
  # The PR title
  pr-title: "Update dependencies"
  # The update strategy, can be 'reuse', 'eager' or 'all'
  update-strategy: eager