mirror of
https://github.com/expo/expo-github-action.git
synced 2026-11-15 17:32:45 -10:00
fix(continuous-deploy-fingerprint): correct expiration date logic for build validation (#307)
This commit is contained in:
1 parent
141e1af34b
commit
4b7860b64d
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -44697,7 +44697,7 @@ async function getBuildInfoWithFingerprintAsync({ cwd, platform, profile, finger
|
||||
expo_1.BuildStatus.Finished,
|
||||
].includes(build.status);
|
||||
// if the build is expired or will expire within the next day,
|
||||
const isValidExpiry = excludeExpiredBuilds ? new Date(build.expirationDate) < tomorrow : true;
|
||||
const isValidExpiry = excludeExpiredBuilds ? new Date(build.expirationDate) > tomorrow : true;
|
||||
return isValidStatus && isValidExpiry;
|
||||
});
|
||||
return buildsThatAreValid[0] ?? null;
|
||||
|
||||
@@ -213,7 +213,7 @@ async function getBuildInfoWithFingerprintAsync({
|
||||
BuildStatus.Finished,
|
||||
].includes(build.status);
|
||||
// if the build is expired or will expire within the next day,
|
||||
const isValidExpiry = excludeExpiredBuilds ? new Date(build.expirationDate) < tomorrow : true;
|
||||
const isValidExpiry = excludeExpiredBuilds ? new Date(build.expirationDate) > tomorrow : true;
|
||||
return isValidStatus && isValidExpiry;
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user