mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-22 02:25:28 +01:00
[ci skip] couple more fixes for build pr jar label (#8599)
This commit is contained in:
parent
54daefa0ca
commit
41ab602f47
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
@ -53,16 +53,16 @@ jobs:
|
||||
if (pull) {
|
||||
result["pr"] = pull.number;
|
||||
result["action"] = "paperclip";
|
||||
core.info(`This is a push action but to a branch with an open PR with the build paperclip label (${JSON.stringify(result)})`);
|
||||
core.notice(`This is a push action but to a branch with an open PR with the build paperclip label (${JSON.stringify(result)})`);
|
||||
return result;
|
||||
}
|
||||
} else if (event_name === "pull_request" && event.pull_request.labels.find((l) => l.name === "build-pr-jar")) {
|
||||
result["pr"] = event.pull_request.number;
|
||||
result["action"] = "paperclip";
|
||||
core.info(`This is a pull request action with a build paperclip label (${JSON.stringify(result)})`);
|
||||
core.notice(`This is a pull request action with a build paperclip label (${JSON.stringify(result)})`);
|
||||
return result;
|
||||
}
|
||||
core.info("This will not build a paperclip jar");
|
||||
core.notice("This will not build a paperclip jar");
|
||||
return result;
|
||||
|
||||
- name: Apply Patches
|
||||
@ -72,7 +72,6 @@ jobs:
|
||||
./gradlew applyPatches --stacktrace
|
||||
|
||||
- name: Build
|
||||
if: fromJSON(steps.determine.outputs.result).action == 'build'
|
||||
run: ./gradlew build --stacktrace
|
||||
|
||||
- name: Create Paperclip Jar
|
||||
|
8
.github/workflows/pr_comment.yml
vendored
8
.github/workflows/pr_comment.yml
vendored
@ -29,12 +29,8 @@ jobs:
|
||||
|
||||
const marker = `<!-- bot: ${purpose} -->`;
|
||||
|
||||
let new_body = data.body ? data.body.trim().split(marker)[0] : "";
|
||||
if (!new_body.trim()) {
|
||||
new_body += `${marker}\n${body}`
|
||||
} else {
|
||||
new_body += `${marker}\n---\n${body}`
|
||||
}
|
||||
let new_body = data.body ? data.body.trim().split(marker)[0].trim() : "";
|
||||
new_body += `\n${marker}\n---\n${body}`;
|
||||
|
||||
core.info(`Updating the text body of PR #${issue_number} in ${owner}/${repo}`);
|
||||
await github.rest.issues.update({ owner, repo, issue_number, body: new_body });
|
||||
|
Loading…
Reference in New Issue
Block a user