diff --git a/README.md b/README.md index 8a155b0..d29da19 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 diff --git a/action.yml b/action.yml index ee408c5..8224709 100644 --- a/action.yml +++ b/action.yml @@ -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 @@ -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