Skip to content

Commit bdff582

Browse files
authored
Fix description formatting in the versions file automation (#4531)
New line characters were not recognized.
1 parent 4ad7824 commit bdff582

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/bump-agent-versions.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ else
1616
fi
1717
git diff -p
1818
git add ".agent-versions.json"
19-
git commit -m "[$GITHUB_REF_NAME](automation) Update .agent-versions.json" -m "This file is used for picking agent versions in integration tests.\n\nThe file's content is based on responses from https://www.elastic.co/api/product_versions and https://snapshots.elastic.co\n\nThe current update is generated based on the following requirements:\n\`\`\`json\n$version_requirements\n\`\`\`"
19+
20+
nl=$'\n' # otherwise the new line character is not recognized properly
21+
commit_desc="This file is used for picking agent versions in integration tests.${nl}${nl}The file's content is based on responses from https://www.elastic.co/api/product_versions and https://snapshots.elastic.co${nl}${nl}The current update is generated based on the following requirements:${nl}${nl}\`\`\`json${nl}${version_requirements}${nl}\`\`\`"
22+
23+
git commit -m "[$GITHUB_REF_NAME][Automation] Update .agent-versions.json" -m "$commit_desc"
2024
git push --set-upstream origin "update-agent-versions-$GITHUB_RUN_ID"
2125
gh pr create \
2226
--base "$GITHUB_REF_NAME" \

0 commit comments

Comments
 (0)