mirror of https://github.com/FabricMC/yarn.git
Update update-base.yml
This commit is contained in:
parent
f63e45a644
commit
ddab5555cf
|
@ -33,6 +33,17 @@ jobs:
|
||||||
try {
|
try {
|
||||||
// Updates the pull request with the latest upstream changes.
|
// Updates the pull request with the latest upstream changes.
|
||||||
await github.pulls.updateBranch({ owner, repo, pull_number })
|
await github.pulls.updateBranch({ owner, repo, pull_number })
|
||||||
|
|
||||||
|
// Checks if the branch is a development version
|
||||||
|
if (contains(base, '-')) {
|
||||||
|
await github.issues.addLabels({ owner, repo, issue_number, labels: ['snapshot'] });
|
||||||
|
await github.issues.removeLabel({ owner, repo, issue_number, name: 'release' });
|
||||||
|
// Otherwise it's a release
|
||||||
|
} else {
|
||||||
|
await github.issues.addLabels({ owner, repo, issue_number, labels: ['release'] });
|
||||||
|
await github.issues.removeLabel({ owner, repo, issue_number, name: 'snapshot' });
|
||||||
|
}
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// 422 is returned when there is a merge conflict
|
// 422 is returned when there is a merge conflict
|
||||||
if (error.status === 422) {
|
if (error.status === 422) {
|
||||||
|
|
Loading…
Reference in New Issue