mirror of
https://github.com/yairm210/Unciv.git
synced 2025-03-06 07:31:26 +07:00
Update uncivbot.yml
This commit is contained in:
parent
d8592ac34e
commit
956c340226
7
.github/workflows/uncivbot.yml
vendored
7
.github/workflows/uncivbot.yml
vendored
@ -82,17 +82,21 @@ jobs:
|
||||
async function createTranslationBranchIfNeeded() {
|
||||
if (await branchExists(translations)) return
|
||||
var defaultBranch = await getDefaultBranch()
|
||||
|
||||
var currentHead = await github.git.getRef({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
ref: 'heads/' + defaultBranch })
|
||||
|
||||
var currentSha = currentHead.data.object.sha
|
||||
console.log("Current sha: " + currentSha)
|
||||
|
||||
await github.git.createRef({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
ref: `refs/heads/`+translations,
|
||||
sha: currentSha })
|
||||
|
||||
await github.issues.createComment({
|
||||
issue_number: context.issue.number,
|
||||
owner: context.repo.owner,
|
||||
@ -106,7 +110,8 @@ jobs:
|
||||
repo: context.repo.repo,
|
||||
state: "open",
|
||||
})
|
||||
translationPrs.forEach(pr => { console.log(pr) })
|
||||
|
||||
translationPrs.data.forEach(pr => { console.log(pr) })
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user