Skip to content

Commit 5f71d64

Browse files
author
DylanBulmer
committed
update git config
1 parent 43fffda commit 5f71d64

2 files changed

Lines changed: 14 additions & 5 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@codrjs/config",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "Codr configuration, unified",
55
"main": "./cjs/index.js",
66
"module": "./esm/index.js",

src/config/GitConfig.ts

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
export const GitConfig: {
2-
branch: string;
3-
commit: string;
2+
ref: string;
3+
commit: { sha: string; timestamp?: string };
44
repo: string;
5+
workflow: {
6+
sha: string;
7+
}
58
} = {
6-
branch: process.env.GIT_BRANCH as string,
7-
commit: process.env.GIT_COMMIT as string,
9+
ref: process.env.GIT_REF as string,
10+
commit: {
11+
sha: process.env.GIT_COMMIT_SHA as string,
12+
timestamp: process.env.GIT_COMMIT_TIME,
13+
},
814
repo: process.env.GIT_REPO as string,
15+
workflow: {
16+
sha: process.env.GIT_WORKFLOW_SHA as string,
17+
},
918
};

0 commit comments

Comments
 (0)