Skip to content

Commit

Permalink
Merge pull request #18 from DeterminateSystems/inline-linux-release-info
Browse files Browse the repository at this point in the history
Inline the linux-release-info dependency
  • Loading branch information
lucperkins authored Apr 21, 2024
2 parents ea7ff7d + e6587f7 commit 56a244c
Show file tree
Hide file tree
Showing 7 changed files with 355 additions and 24 deletions.
145 changes: 133 additions & 12 deletions 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.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
"eslint-plugin-github": "^4.10.2",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^5.1.3",
"linux-release-info": "^3.0.0",
"prettier": "^3.2.5",
"tsup": "^8.0.2",
"typedoc": "^0.25.13",
Expand Down
8 changes: 0 additions & 8 deletions pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion src/actions-core-platform.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// MIT, mostly lifted from https://github.com/actions/toolkit/blob/5a736647a123ecf8582376bdaee833fbae5b3847/packages/core/src/platform.ts
// since it isn't in @actions/core 1.10.1 which is their current release as 2024-04-19.
// Changes: Replaced the lsb_release call in Linux with `linux-release-info` to parse the os-release file directly.
import { releaseInfo } from "./linux-release-info.js";
import * as core from "@actions/core";
import * as exec from "@actions/exec";
import { releaseInfo } from "linux-release-info";
import os from "os";

/**
Expand Down
Loading

0 comments on commit 56a244c

Please sign in to comment.