mirror of
https://github.com/audacity/audacity-actions.git
synced 2025-12-10 21:08:33 -06:00
30 lines
582 B
JavaScript
30 lines
582 B
JavaScript
const core = require('@actions/core');
|
|
|
|
module.exports = {
|
|
Alpha : 0,
|
|
Beta : 1,
|
|
Release : 2,
|
|
|
|
getBuildLevel: () => {
|
|
const buildLevel = core.getInput('build_level');
|
|
|
|
if (buildLevel === 'beta') {
|
|
return 1;
|
|
} else if (buildLevel === 'release') {
|
|
return 2;
|
|
} else {
|
|
return 0;
|
|
}
|
|
},
|
|
|
|
getBuildSuffix: (level) => {
|
|
if (level == 1) {
|
|
return 'beta';
|
|
} else if (level == 2) {
|
|
return '';
|
|
} else {
|
|
return 'alpha';
|
|
}
|
|
},
|
|
}
|