From a39d538521c5939f21694fb5a53d91178e34f19c Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Wed, 29 Apr 2026 17:53:45 -0400 Subject: [PATCH] Test detsys-ts update --- dist/index.js | 12 +++++++++++- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index c31abda..ab0dcd8 100644 --- a/dist/index.js +++ b/dist/index.js @@ -106182,7 +106182,7 @@ var DetSysAction = class { return this.identity; } recordEvent(eventName, context = {}) { - const prefixedName = eventName === "$feature_flag_called" ? eventName : `${this.actionOptions.eventPrefix}${eventName}`; + const prefixedName = eventName === "$feature_flag_called" || eventName === "$groupidentify" ? eventName : `${this.actionOptions.eventPrefix}${eventName}`; this.events.push({ name: prefixedName, distinct_id: this.identity.$anon_distinct_id, @@ -106240,6 +106240,7 @@ var DetSysAction = class { this.addFact(FACT_NIX_STORE_TRUST, this.nixStoreTrust); } if (this.isMain) { + this.recordGroup(); await this.main(); await this.preflightNixVersion(); } else if (this.isPost) await this.post(); @@ -106308,6 +106309,15 @@ var DetSysAction = class { }); return result; } + recordGroup() { + const ghorg_hash = this.identity.$groups["github_organization"]; + const ghorg_name = process.env["GITHUB_REPOSITORY_OWNER"]; + if (ghorg_hash !== void 0 && ghorg_name !== void 0) this.recordEvent("$groupidentify", { + $group_type: "github_organization", + $group_key: ghorg_hash, + $group_set: { name: ghorg_name } + }); + } /** * Check in to install.determinate.systems, to accomplish three things: * diff --git a/package-lock.json b/package-lock.json index a18e76b..c729db3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@actions/core": "^3.0.0", "@actions/exec": "^3.0.0", "@actions/github": "^9.0.0", - "detsys-ts": "github:DeterminateSystems/detsys-ts", + "detsys-ts": "github:DeterminateSystems/detsys-ts#push-sqvzmxuokwlk", "got": "^14.6.6", "string-argv": "^0.3.2", "vitest": "^3.2.4" @@ -3453,7 +3453,7 @@ }, "node_modules/detsys-ts": { "version": "1.0.0", - "resolved": "git+ssh://git@github.com/DeterminateSystems/detsys-ts.git#726a3af42b38166248e4e67011ba04523be3a1a9", + "resolved": "git+ssh://git@github.com/DeterminateSystems/detsys-ts.git#27b169dafe8521a3c85a67e0771ff5423ca00ae1", "license": "MIT", "dependencies": { "@actions/cache": "^6.0.0", diff --git a/package.json b/package.json index ad76ca1..d7b9128 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "@actions/core": "^3.0.0", "@actions/exec": "^3.0.0", "@actions/github": "^9.0.0", - "detsys-ts": "github:DeterminateSystems/detsys-ts", + "detsys-ts": "github:DeterminateSystems/detsys-ts#push-sqvzmxuokwlk", "got": "^14.6.6", "string-argv": "^0.3.2", "vitest": "^3.2.4"