mirror of https://github.com/cabaletta/baritone
don't do the other stuff
This commit is contained in:
parent
b0266cd14b
commit
0df45a89be
|
@ -21,7 +21,6 @@ jobs:
|
||||||
distribution: 'adopt'
|
distribution: 'adopt'
|
||||||
|
|
||||||
- uses: actions/github-script@v2
|
- uses: actions/github-script@v2
|
||||||
id: fname
|
|
||||||
name: apply beta versioning
|
name: apply beta versioning
|
||||||
with:
|
with:
|
||||||
result-encoding: string
|
result-encoding: string
|
||||||
|
@ -30,9 +29,6 @@ jobs:
|
||||||
let file = fs.readFileSync("./gradle.properties");
|
let file = fs.readFileSync("./gradle.properties");
|
||||||
file = file.toString().split("\n").map(e => e.trim().startsWith("mod_version") ? `${e}-beta-${process.env.GITHUB_SHA.substring(0, 7)}` : e).join("\n");
|
file = file.toString().split("\n").map(e => e.trim().startsWith("mod_version") ? `${e}-beta-${process.env.GITHUB_SHA.substring(0, 7)}` : e).join("\n");
|
||||||
fs.writeFileSync("./gradle.properties", file);
|
fs.writeFileSync("./gradle.properties", file);
|
||||||
const mod_version = file.toString().split("\n").filter(e => e.trim().startsWith("mod_version"))[0].split("=")[1].trim();
|
|
||||||
const archives_base_name = file.toString().split("\n").filter(e => e.trim().startsWith("archives_base_name"))[0].split("=")[1].trim();
|
|
||||||
return `${archives_base_name}-${mod_version}`;
|
|
||||||
|
|
||||||
- name: Grant execute permission for gradlew
|
- name: Grant execute permission for gradlew
|
||||||
run: chmod +x gradlew
|
run: chmod +x gradlew
|
||||||
|
|
Loading…
Reference in New Issue