From bc4ebf4ebf9a936d7b465fff4b628a97bca56627 Mon Sep 17 00:00:00 2001 From: Saul Vargas <98332779+veriff-saulvargas@users.noreply.github.com> Date: Fri, 10 May 2024 02:01:49 +0200 Subject: [PATCH 1/3] add option pass --unconstrained (#12) --- README.md | 2 ++ action.yml | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8a155b0..7fa9872 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,8 @@ with: pr-title: "Update dependencies" # The update strategy, can be 'reuse', 'eager' or 'all' update-strategy: eager + # Ignore the version constraint of packages in pyproject.toml + unconstrained: true # 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..054f561 100644 --- a/action.yml +++ b/action.yml @@ -17,6 +17,10 @@ inputs: description: "The update strategy, can be 'reuse', 'eager' or 'all'" required: false default: "reuse" + 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 +45,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 }} ${{ inputs.unconstrained == 'true' && '--unconstrained' || '' }} shell: bash id: pdm-update From 220b51345905dbf3737390f2db880b10bbf9e530 Mon Sep 17 00:00:00 2001 From: Saul Vargas <98332779+veriff-saulvargas@users.noreply.github.com> Date: Thu, 16 May 2024 08:36:52 +0200 Subject: [PATCH 2/3] feat: add option to specify save strategy (#13) * add option to specify save strategy * update README with default values --- README.md | 6 ++++-- action.yml | 6 +++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7fa9872..b98a6d3 100644 --- a/README.md +++ b/README.md @@ -32,9 +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: true + 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 054f561..8224709 100644 --- a/action.yml +++ b/action.yml @@ -17,6 +17,10 @@ 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 @@ -45,7 +49,7 @@ runs: shell: bash - name: "Update dependencies" - run: pdm update --no-sync --update-${{ inputs.update-strategy }} ${{ inputs.unconstrained == 'true' && '--unconstrained' || '' }} + run: pdm update --no-sync --update-${{ inputs.update-strategy }} --save-${{ inputs.save-strategy }} ${{ inputs.unconstrained == 'true' && '--unconstrained' || '' }} shell: bash id: pdm-update From 2201ffd96cac8e6343411bccb66f49a436691493 Mon Sep 17 00:00:00 2001 From: DetachHead <57028336+DetachHead@users.noreply.github.com> Date: Wed, 22 May 2024 20:43:34 +1000 Subject: [PATCH 3/3] fix actions/checkout version (#16) v5 does not exist --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b98a6d3..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