mirror of
https://github.com/graycoreio/github-actions-magento2.git
synced 2026-06-13 13:14:53 +00:00
14a0e38d64
eslint 9 ignores .eslintrc.* by default, so replace .eslintrc.cjs with a flat eslint.config.mjs (in the style of graycoreio/daffodil)
15 lines
550 B
TypeScript
15 lines
550 B
TypeScript
import { Repository } from "./repository";
|
|
|
|
/**
|
|
* Get the next version of Magento, as determined by the repository.
|
|
*/
|
|
export const getNextVersion = (repository: Repository, _date: Date) => {
|
|
switch(repository){
|
|
case "https://nightly.mage-os.org":
|
|
case "https://upstream-nightly.mage-os.org":
|
|
// See: https://github.com/mage-os/generate-mirror-repo-js/blob/bbbdf1708ea0bf8fc845aad8240d00f37632b4a7/src/release-branch-build-tools.js#L71
|
|
return "@alpha";
|
|
default:
|
|
return "next";
|
|
}
|
|
} |