Skip to content

Commit

Permalink
feat: Allow multiline, comma-separated strings in the dependency expo…
Browse files Browse the repository at this point in the history
…rt input for the `update_development_dependencies` action
  • Loading branch information
nfelt14 committed Sep 3, 2024
1 parent 6e43a07 commit 7f23aef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ Valid subsections within a version are:

Things to be included in the next release go here.

### Added

- Added the ability for the `update_development_dependencies` action to accept a comma-separated, multiline string

### Changed

- Changed the `_reusable-update-python-and-pre-commit-dependencies.yml` workflow to no longer only work on PRs from Dependabot, users will now need to apply any conditional login in the calling workflow.
Expand Down
2 changes: 1 addition & 1 deletion actions/update_development_dependencies/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def main() -> None:
repo_root = os.environ["INPUT_REPO-ROOT"]
dependency_dict = convert_dict_input(os.environ["INPUT_DEPENDENCY-DICT"])
export_dependency_groups = [
x for x in os.environ["INPUT_EXPORT-DEPENDENCY-GROUPS"].split(",") if x
x.strip() for x in os.environ["INPUT_EXPORT-DEPENDENCY-GROUPS"].split(",") if x
]
pre_commit_hook_skip_list = os.environ["INPUT_PRE-COMMIT-HOOK-SKIP-LIST"]
install_dependencies = os.environ["INPUT_INSTALL-DEPENDENCIES"].lower() in _ENV_VAR_TRUE_VALUES
Expand Down

0 comments on commit 7f23aef

Please sign in to comment.