Skip to content

Commit

Permalink
Pass git commit sha to build process
Browse files Browse the repository at this point in the history
  • Loading branch information
dontcallmedom committed Oct 13, 2023
1 parent 958b6d5 commit c204e6d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/prepare-build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export type BasicBuildOptions = {
toolchain: "respec" | "bikeshed";
source: NormalizedPath;
destination: NormalizedPath;
gitRevision: string;
};
function getBasicBuildOptions(inputs: Inputs): BasicBuildOptions {
let toolchain = inputs.TOOLCHAIN;
Expand Down Expand Up @@ -109,6 +110,7 @@ function getBasicBuildOptions(inputs: Inputs): BasicBuildOptions {
toolchain,
source: getNormalizedPath(source),
destination: getNormalizedPath(destination),
gitRevision: inputs.githubContext.sha
} as BasicBuildOptions;
}

Expand Down

0 comments on commit c204e6d

Please sign in to comment.