Skip to content

Commit c815de5

Browse files
committed
fix: publish templates from .devcontainer folder
1 parent c53a9c8 commit c815de5

1 file changed

Lines changed: 5 additions & 11 deletions

File tree

.github/workflows/publish-templates.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- main
77
paths:
88
- '.devcontainer/**/devcontainer-template.json'
9+
- '.devcontainer/**/devcontainer.json'
910
- '.github/workflows/publish-templates.yml'
1011
workflow_dispatch:
1112

@@ -43,14 +44,7 @@ jobs:
4344
OWNER="${{ github.repository_owner }}"
4445
OWNER_LC=$(echo "$OWNER" | tr '[:upper:]' '[:lower:]')
4546
46-
# Find and publish all templates
47-
for template_dir in .devcontainer/*/; do
48-
if [[ -f "${template_dir}devcontainer-template.json" ]]; then
49-
template_name=$(basename "$template_dir")
50-
echo "Publishing template: $template_name"
51-
52-
devcontainer templates publish "$template_dir" \
53-
--registry "${{ env.REGISTRY }}" \
54-
--namespace "$OWNER_LC"
55-
fi
56-
done
47+
# Publish all templates from .devcontainer folder
48+
devcontainer templates publish .devcontainer \
49+
--registry "${{ env.REGISTRY }}" \
50+
--namespace "$OWNER_LC"

0 commit comments

Comments
 (0)