Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix csv list generation and avoid unnecessary rebuilds #67

Merged
merged 2 commits into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
name: Community Extension Build
on:
pull_request:
paths-ignore:
- '**'
- '!scripts/build.py'
- '!.github/workflows/build.yml'
- '!extensions/*/description.yml'
push:
paths-ignore:
- '**'
- '!scripts/build.py'
- '!.github/workflows/build.yml'
- '!extensions/*/description.yml'
workflow_dispatch:
inputs:
extension_name:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/generate_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ jobs:
with:
name: generated_markdowns
path: |
build/docs/*.md
build/docs/*
3 changes: 2 additions & 1 deletion scripts/generate_md.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ do
if [ -s "extensions/$extension/description.yml" ]; then
echo -n " " >> $EXTENSION_README
cat extensions/$extension/description.yml | yq -r ".extension.description" >> $EXTENSION_README
cat extensions/$extension/description.yml | yq '.extension.name, .repo.github, .repo.ref, .extension.description' | xargs printf "%s,%s,%s,\"%s\"\n" >> $EXTENSIONS_CSV
cat extensions/$extension/description.yml | yq '.extension.name, .repo.github, .repo.ref' | xargs printf '%s,%s,%s,"' >> $EXTENSIONS_CSV
cat extensions/$extension/description.yml | yq -r '.extension.description' | sed 's/$/"/' >> $EXTENSIONS_CSV
echo "" >> $EXTENSION_README
cat extensions/$extension/description.yml >> $EXTENSION_README
echo "" >> $EXTENSION_README
Expand Down
Loading