diff options
| author | Fuwn <[email protected]> | 2022-03-09 19:04:17 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-03-09 19:04:17 -0800 |
| commit | 3c4a278db3e5b9696269caefad2bfaa79578704c (patch) | |
| tree | 096febe388721081a092f09582bdd9589c6b6cbd /src/utils.rs | |
| parent | feat(index): git commit hash on index (diff) | |
| download | api-worker-3c4a278db3e5b9696269caefad2bfaa79578704c.tar.xz api-worker-3c4a278db3e5b9696269caefad2bfaa79578704c.zip | |
refactor: use vergen for build variables
Diffstat (limited to 'src/utils.rs')
| -rw-r--r-- | src/utils.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.rs b/src/utils.rs index d48ff34..8bb70da 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -28,7 +28,7 @@ pub async fn github_api( .get(constants::GITHUB_API_ENDPOINT) .header( "User-Agent", - format!("senpy-club/api-worker - {}", env!("GIT_COMMIT_HASH")), + format!("senpy-club/api-worker - {}", env!("VERGEN_GIT_SHA")), ); if std::env::var("GITHUB_TOKEN").is_ok() { |