mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 06:16:37 -04:00
Update uncivbot.yml
This commit is contained in:
parent
f3e20e6870
commit
ea8d5957ff
8
.github/workflows/uncivbot.yml
vendored
8
.github/workflows/uncivbot.yml
vendored
@ -82,18 +82,18 @@ jobs:
|
|||||||
async function createTranslationBranchIfNeeded() {
|
async function createTranslationBranchIfNeeded() {
|
||||||
if (await branchExists(translations)) return
|
if (await branchExists(translations)) return
|
||||||
var defaultBranch = await getDefaultBranch()
|
var defaultBranch = await getDefaultBranch()
|
||||||
var currentHead = await context.github.git.getRef({
|
var currentHead = await github.git.getRef({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
ref: 'heads/' + defaultBranch })
|
ref: 'heads/' + defaultBranch })
|
||||||
var currentSha = currentHead.data.object.sha
|
var currentSha = currentHead.data.object.sha
|
||||||
app.log("Current sha: " + currentSha)
|
console.log("Current sha: " + currentSha)
|
||||||
await context.github.git.createRef({
|
await github.git.createRef({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
ref: `refs/heads/`+translations,
|
ref: `refs/heads/`+translations,
|
||||||
sha: currentSha })
|
sha: currentSha })
|
||||||
await context.github.issues.createComment({
|
await github.issues.createComment({
|
||||||
issue_number: context.issue.number,
|
issue_number: context.issue.number,
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user