mirror of
https://github.com/graycoreio/github-actions-magento2.git
synced 2026-06-19 06:41:20 +00:00
7431dcb7af
This also allows using the action in https://github.com/mage-os/generate-mirror-repo-js where the test module is an external package installed with composer. In this case, no local path repo configuration is needed. Co-authored-by: Vinai Kopp <Vinai@users.noreply.github.com>
8 lines
218 B
TypeScript
8 lines
218 B
TypeScript
/**
|
|
* Gets the date one day before the date.
|
|
*/
|
|
export const getDayBefore = (date: Date = new Date()) => {
|
|
const yesterday = new Date(date);
|
|
yesterday.setDate(yesterday.getDate() - 1);
|
|
return yesterday;
|
|
} |