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

mpr #233

Merged
merged 2 commits into from
Jun 5, 2021
Merged

mpr #233

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
2 changes: 1 addition & 1 deletion source/app/action/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ async function wait(seconds) {
info("Actions to perform", "(none)")
else {
await fs.mkdir(paths.dirname(paths.join("/renders", filename)), {recursive:true})
await fs.writeFile(paths.join("/renders", filename), Buffer.from(rendered))
await fs.writeFile(paths.join("/renders", filename), Buffer.from(typeof rendered === "object" ? JSON.stringify(rendered) : `${rendered}`))
info(`Save to /metrics_renders/${filename}`, "ok")
}

Expand Down
26 changes: 13 additions & 13 deletions source/plugins/licenses/tests.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
- name: Licenses plugin (complete)
uses: lowlighter/metrics@latest
with:
token: MOCKED_TOKEN
template: repository
repo: metrics
plugin_licenses: yes
plugin_licenses_setup: npm ci
plugin_licenses_ratio: yes
plugin_licenses_legal: yes
timeout: 1800000
modes:
- action
#- name: Licenses plugin (complete)
# uses: lowlighter/metrics@latest
# with:
# token: MOCKED_TOKEN
# template: repository
# repo: metrics
# plugin_licenses: yes
# plugin_licenses_setup: npm ci
# plugin_licenses_ratio: yes
# plugin_licenses_legal: yes
# timeout: 1800000
# modes:
# - action