DONT on tags

This commit is contained in:
Wagyourtail 2022-06-01 16:28:53 -06:00
parent 1b3139c99a
commit caa88c5b60
No known key found for this signature in database
GPG Key ID: 919725C5A647667A
1 changed files with 1 additions and 0 deletions

View File

@ -29,6 +29,7 @@ jobs:
let file = fs.readFileSync("./gradle.properties"); let file = fs.readFileSync("./gradle.properties");
file = file.toString().split("\n").map(e => { file = file.toString().split("\n").map(e => {
if (!e.trim().startsWith("mod_version")) return e; if (!e.trim().startsWith("mod_version")) return e;
if (process.env.GITHUB_REF.includes("tags")) return e;
let vers = e.split("."); let vers = e.split(".");
let n = parseInt(vers[vers.length-1].trim()) + 1; let n = parseInt(vers[vers.length-1].trim()) + 1;
vers = vers.slice(0, vers.length - 1); vers = vers.slice(0, vers.length - 1);