Skip to content

new-version has trailing whitespace #371

@Bibo-Joshi

Description

@Bibo-Joshi

Hi,

I've tried this action today and am very happy to have created this workflow with it :)
One thing that made the creation a bit complicated for me was that the new-version contained a trailing newline as can be seen in this action run:

The output of

    - name: Log some stuff
      run: |
        echo "Line One"
        echo "${{ steps.dependabot-metadata.outputs.previous-version }}"
        echo "Line Two"
        echo "${{ steps.dependabot-metadata.outputs.new-version }}"
        echo "Line Three"
        echo "Line One"
        echo "${{ steps.version-numbers.outputs.previous-version }}"
        echo "Line Two"
        echo "${{ steps.version-numbers.outputs.new-version }}"
        echo "Line Three"

(the version-numbers step is my manual approach of stripping the whitespaces) is

  echo "Line One"
  echo "0.23.3"
  echo "Line Two"
  echo "0.24.1
  "
  echo "Line Three"
  echo "Line One"
  echo "0.23.3"
  echo "Line Two"
  echo "0.24.1"
  echo "Line Three"

I'm not sure if this problem is specific to the pip ecosystem and/or may also happen for previous-version, but it would be nice if fetch-metadata could strip leading and trailing whitespaces automatically :)

Cheers,
Hinrich

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions