mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
Merge branch 'main' into dev-tank-search
This commit is contained in:
commit
0c74cb90e9
4 files changed
+6
-13
No files matched your search
@@ -1,11 +1,9 @@
|
|||||||
name: CD Discover IDs
|
name: CD Discover IDs
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches: main
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 */6 * * *'
|
- cron: '0 0 * * 1'
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
"main": "src/server.ts",
|
"main": "src/server.ts",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"build:assets": "bun scripts/buildAssets/index.ts",
|
||||||
"build:averages": "bun scripts/averages",
|
"build:averages": "bun scripts/averages",
|
||||||
"build:db": "prisma generate",
|
"build:db": "prisma generate",
|
||||||
"build:bot": "bun scripts/build.ts --production",
|
"build:bot": "bun scripts/build.ts --production",
|
||||||
|
|||||||
@@ -41,9 +41,9 @@ const methods = [
|
|||||||
consumableProvisionIcons,
|
consumableProvisionIcons,
|
||||||
camouflageIcons,
|
camouflageIcons,
|
||||||
boosterIcons,
|
boosterIcons,
|
||||||
tankIcons,
|
|
||||||
tankArmors,
|
tankArmors,
|
||||||
tankModels,
|
tankModels,
|
||||||
|
tankIcons,
|
||||||
];
|
];
|
||||||
|
|
||||||
for (const method of methods) {
|
for (const method of methods) {
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import ProgressBar from 'progress';
|
||||||
import { GithubChangeBlob, createBlob } from './createBlob';
|
import { GithubChangeBlob, createBlob } from './createBlob';
|
||||||
import { octokit } from './octokit';
|
import { octokit } from './octokit';
|
||||||
|
|
||||||
@@ -30,21 +31,14 @@ export default async function commitMultipleFiles(
|
|||||||
})
|
})
|
||||||
).data.tree.sha;
|
).data.tree.sha;
|
||||||
const blobs: GithubChangeBlob[] = [];
|
const blobs: GithubChangeBlob[] = [];
|
||||||
|
const bar = new ProgressBar('Blobs :bar', changes.length);
|
||||||
|
|
||||||
for (const changeIndexString in changes) {
|
for (const changeIndexString in changes) {
|
||||||
const changeIndex = parseInt(changeIndexString);
|
const changeIndex = parseInt(changeIndexString);
|
||||||
const change = changes[changeIndex];
|
const change = changes[changeIndex];
|
||||||
const createdBlob = await createBlob(owner, repo, change);
|
const createdBlob = await createBlob(owner, repo, change);
|
||||||
blobs.push(createdBlob!);
|
blobs.push(createdBlob!);
|
||||||
|
bar.tick();
|
||||||
if (verbose) {
|
|
||||||
console.log(
|
|
||||||
`Created blob ${changeIndex + 1} / ${changes.length} (${(
|
|
||||||
(100 * (changeIndex + 1)) /
|
|
||||||
changes.length
|
|
||||||
).toFixed(2)}%)`,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const { data: treeData } = await octokit.git.createTree({
|
const { data: treeData } = await octokit.git.createTree({
|
||||||
|
|||||||
Reference in new issue
Block a user