Skip to content

Commit 9e25f2c

Browse files
committed
Fix #31 update umami-api to get error stack, fix domain default
domain default value is now empty string that means first website
1 parent 126d4bd commit 9e25f2c

17 files changed

+26
-25
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ inputs:
1616
required: true
1717
umami-site-domain:
1818
description: The umami site domain name
19-
default: '*first*'
19+
default: ''
2020
required: false
2121
umami-report-file:
2222
description: The umami report file to produce (skipped if empty)

lib/action.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class Action {
5656
/**
5757
* @deprecated : please use umamiReport(...)
5858
*/
59-
static async umamiDailyReportV0(server, user, password, domain = '*first*', outputFile = null, reportContent = 'pageviews|events|urls') {
59+
static async umamiDailyReportV0(server, user, password, domain = '', outputFile = null, reportContent = 'pageviews|events|urls') {
6060
var options = { server, user, password, domain, outputFile, reportContent };
6161
return await Action.umamiReport(options);
6262
}

main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import github from '@actions/github';
55
const umamiServer = core.getInput('umami-server', { required: true });
66
const umamiUser = core.getInput('umami-user', { required: true });
77
const umamiPassword = core.getInput('umami-password', { required: true });
8-
const umamiSiteDomain = core.getInput('umami-site-domain');// *first*
8+
const umamiSiteDomain = core.getInput('umami-site-domain');// ''
99
const umamiReportFile = core.getInput('umami-report-file');// ''
1010
const umamiReportContent = core.getInput('umami-report-content');// 'pageviews|events|urls'
1111
const umamiPeriod = core.getInput('umami-period');// '24h'

manual.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import github from '@actions/github';
55
const UMAMI_SERVER = process.env.UMAMI_SERVER || null; // "https://umami.exemple.com";
66
const UMAMI_USER = process.env.UMAMI_USER || "admin";
77
const UMAMI_PASSWORD = process.env.UMAMI_PASSWORD || null;
8-
const UMAMI_SITE_DOMAIN = process.env.UMAMI_SITE_DOMAIN || "*first*";
8+
const UMAMI_SITE_DOMAIN = process.env.UMAMI_SITE_DOMAIN;
99
const UMAMI_REPORT_FILE = process.env.UMAMI_REPORT_FILE || "umamiReport.txt";
1010
const UMAMI_REPORT_CONTENT = process.env.UMAMI_REPORT_CONTENT || "pageviews|events|urls";
1111
const rethrow = (err) => {throw err;}

node_modules/.package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/umami-api/dist/index.cjs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/umami-api/dist/index.cjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/umami-api/dist/index.modern.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/umami-api/dist/index.modern.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/umami-api/dist/index.module.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)