Skip to content

Commit

Permalink
update git config
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanBulmer committed Apr 15, 2023
1 parent 43fffda commit 5f71d64
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@codrjs/config",
"version": "1.0.5",
"version": "1.0.6",
"description": "Codr configuration, unified",
"main": "./cjs/index.js",
"module": "./esm/index.js",
Expand Down
17 changes: 13 additions & 4 deletions src/config/GitConfig.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
export const GitConfig: {
branch: string;
commit: string;
ref: string;
commit: { sha: string; timestamp?: string };
repo: string;
workflow: {
sha: string;
}
} = {
branch: process.env.GIT_BRANCH as string,
commit: process.env.GIT_COMMIT as string,
ref: process.env.GIT_REF as string,
commit: {
sha: process.env.GIT_COMMIT_SHA as string,
timestamp: process.env.GIT_COMMIT_TIME,
},
repo: process.env.GIT_REPO as string,
workflow: {
sha: process.env.GIT_WORKFLOW_SHA as string,
},
};

0 comments on commit 5f71d64

Please sign in to comment.