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

Feat community templates #68

Merged
merged 6 commits into from
Jan 19, 2021
Merged
Changes from 1 commit
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
Prev Previous commit
Update README.md
  • Loading branch information
lowlighter committed Jan 19, 2021
commit afbc89c60155291944ebd2a4592072ed406684e2
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ For example, to use the `super-metrics` template from `github-user`'s fork, add
with:
# ... other options
template: "@super-metrics"
setup_community_templates: github-user/metrics@latest:classic
setup_community_templates: github-user/metrics@master:classic
```

By default, community templates have their `template.mjs` removed and fallback to the one used by `classic` template.
Expand All @@ -657,7 +657,7 @@ If you really trust a template, it is possible to bypass this behaviour by appen
- uses: lowlighter/metrics@master
with:
# ... other options
setup_community_templates: github-user/metrics@latest:classic+trust
setup_community_templates: github-user/metrics@master:classic+trust
```

To create a new community template, just fork this repository and create a folder in `/source/templates` with the same structure as current templates.
Expand Down