Skip to content

Commit

Permalink
Sanitize version_cmd output
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy committed Apr 29, 2024
1 parent 304afff commit a7e8a69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ runs:
id: version
shell: bash
run: |
version=$(${{ inputs.version_cmd }})
echo "sonar.projectVersion=$version" >> sonar-project.properties
version=$(${{ inputs.version_cmd }} | tr -d '\r\n')
echo "sonar.projectVersion=${version//$'\n'/\\n}" >> sonar-project.properties
# Fetch base branch from the upstream repo so that Sonar can identify new code in PR builds
- name: "📕 Fetch base branch"
Expand Down

0 comments on commit a7e8a69

Please sign in to comment.