We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 317eaf9 commit 2cc9e68Copy full SHA for 2cc9e68
.github/workflows/generate-readme-translations.yml
@@ -72,7 +72,15 @@ jobs:
72
73
- name: Save translation
74
run: |
75
- mv translated.md README_${{ matrix.language.code }}.md
+ # Create a temporary variable with the translation
76
+ translation='${{ steps.aixion.outputs.text }}'
77
+ # Escape any quotes and special characters
78
+ translation="${translation//\"/\\\"}"
79
+ translation="${translation//'%'/'%25'}"
80
+ translation="${translation//$'\n'/'%0A'}"
81
+ translation="${translation//$'\r'/'%0D'}"
82
+ # Write the escaped content to file
83
+ echo "$translation" > README_${{ matrix.language.code }}.md
84
85
- name: List README translations
86
run: ls README_*.md || echo "No translation files found"
0 commit comments