Skip to content

Commit

Permalink
(fix) release: flutter example readme formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-pelykh committed Dec 24, 2024
1 parent bb5a044 commit cd31d7b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,11 @@ jobs:
&& sed -i 's/uvccamera:/uvccamera: ${{ github.ref_name }}/g' pubspec.yaml \
&& sed -i '/ path: ..\//d' pubspec.yaml \
&& for EXAMPLE_FILE in pubspec.yaml lib/*.dart; do ( \
echo -n "\n## [${EXAMPLE_FILE}](https://github.com/alexey-pelykh/UVCCamera/blob/main/flutter/example/${EXAMPLE_FILE})\n" >> README.md \
&& echo -n "\n\`\`\`${EXAMPLE_FILE##*.}\n" >> README.md \
echo "" >> README.md \
echo "## [${EXAMPLE_FILE}](https://github.com/alexey-pelykh/UVCCamera/blob/main/flutter/example/${EXAMPLE_FILE})" >> README.md \
&& echo "\`\`\`${EXAMPLE_FILE##*.}" >> README.md \
&& cat "$EXAMPLE_FILE" >> README.md \
&& echo -n "\`\`\`\n" >> README.md \
&& echo "\`\`\`" >> README.md \
); done \
)
Expand Down

0 comments on commit cd31d7b

Please sign in to comment.