File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 - main
77 paths :
88 - ' .devcontainer/**/devcontainer-template.json'
9+ - ' .devcontainer/**/devcontainer.json'
910 - ' .github/workflows/publish-templates.yml'
1011 workflow_dispatch :
1112
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"
You can’t perform that action at this time.
0 commit comments