An open API service indexing awesome lists of open source software.

https://github.com/pdm-project/update-deps-action

A github action to update pdm lock file
https://github.com/pdm-project/update-deps-action

Last synced: 7 months ago
JSON representation

A github action to update pdm lock file

Awesome Lists containing this project

README

          

# PDM update dependencies GitHub Action

## Usage

Example workflow:

```yaml
name: Update dependencies

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

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

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

## Inputs

```yaml
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: reuse
# The save strategy, can 'compatible', 'wildcard', 'exact' or 'minimum'
save-strategy: minimum
# Ignore the version constraint of packages in pyproject.toml
unconstrained: false
# Whether to install PDM plugins before update
install-plugins: "false"
# Whether commit message contains signed-off-by
sign-off-commit: "false"
# Sign commits as github-actions[bot]
sign-commits: "true"
```

## Outputs

```yaml
outputs:
# The pull request number
pull-request-number:
# The URL of the pull request
pull-request-url:
```