Skip to content

Commit

Permalink
Merge branch 'main' of github.com:pdm-project/update-deps-action
Browse files Browse the repository at this point in the history
  • Loading branch information
frostming committed Jul 19, 2024
2 parents e41ce29 + 2201ffd commit be7ffca
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
update-dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v4

- name: Update dependencies
uses: pdm-project/update-deps-action@main
Expand All @@ -32,7 +32,11 @@ with:
# The PR title
pr-title: "Update dependencies"
# The update strategy, can be 'reuse', 'eager' or 'all'
update-strategy: eager
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
Expand Down
10 changes: 9 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ inputs:
description: "The update strategy, can be 'reuse', 'eager' or 'all'"
required: false
default: "reuse"
save-strategy:
description: "The save strategy, can be 'compatible', 'wildcard', 'exact' or 'minimum'"
required: false
default: "minimum"
unconstrained:
description: "Ignore the version constraint of packages in pyproject.toml"
required: false
default: "false"
install-plugins:
description: "Whether install PDM plugins before update"
required: false
Expand All @@ -41,7 +49,7 @@ runs:
shell: bash

- name: "Update dependencies"
run: pdm update --no-sync --update-${{ inputs.update-strategy }}
run: pdm update --no-sync --update-${{ inputs.update-strategy }} --save-${{ inputs.save-strategy }} ${{ inputs.unconstrained == 'true' && '--unconstrained' || '' }}
shell: bash
id: pdm-update

Expand Down

0 comments on commit be7ffca

Please sign in to comment.