Skip to content

Commit

Permalink
Merge pull request #59 from DeterminateSystems/collect-crash-logs
Browse files Browse the repository at this point in the history
Automatically include the name of the action's binary in the crash lo…
  • Loading branch information
grahamc authored Aug 26, 2024
2 parents cf1897a + fb69438 commit 2375e09
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
6 changes: 5 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export type ActionOptions = {

// Collect backtraces from segfaults and other failures from binaries that start with these names.
//
// Default: `[ "nix" ]`.
// Default: `[ "nix", "determinate-nixd", ActionOptions.name ]`.
binaryNamePrefixes?: string[];
};

Expand Down Expand Up @@ -934,7 +934,11 @@ function makeOptionsConfident(
fetchStyle: actionOptions.fetchStyle,
legacySourcePrefix: actionOptions.legacySourcePrefix,
requireNix: actionOptions.requireNix,
binaryNamePrefixes: actionOptions.binaryNamePrefixes || ["nix"],
binaryNamePrefixes: actionOptions.binaryNamePrefixes || [
"nix",
"determinate-nixd",
actionOptions.name,
],
};

actionsCore.debug("idslib options:");
Expand Down

0 comments on commit 2375e09

Please sign in to comment.