Merge branch 'main' into dev-tank-search

This commit is contained in:
TrèsAbhi committed 2024-06-24 13:07:43 -05:00
commit 0c74cb90e9
4 files changed
+6 -13

No files matched your search

+1 -3
View File
@@ -1,11 +1,9 @@
name: CD Discover IDs
on:
push:
branches: main
workflow_dispatch:
schedule:
- cron: '0 */6 * * *'
- cron: '0 0 * * 1'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
+1
View File
@@ -5,6 +5,7 @@
"main": "src/server.ts",
"type": "module",
"scripts": {
"build:assets": "bun scripts/buildAssets/index.ts",
"build:averages": "bun scripts/averages",
"build:db": "prisma generate",
"build:bot": "bun scripts/build.ts --production",
+1 -1
View File
@@ -41,9 +41,9 @@ const methods = [
consumableProvisionIcons,
camouflageIcons,
boosterIcons,
tankIcons,
tankArmors,
tankModels,
tankIcons,
];
for (const method of methods) {
+3 -9
View File
@@ -1,3 +1,4 @@
import ProgressBar from 'progress';
import { GithubChangeBlob, createBlob } from './createBlob';
import { octokit } from './octokit';
@@ -30,21 +31,14 @@ export default async function commitMultipleFiles(
})
).data.tree.sha;
const blobs: GithubChangeBlob[] = [];
const bar = new ProgressBar('Blobs :bar', changes.length);
for (const changeIndexString in changes) {
const changeIndex = parseInt(changeIndexString);
const change = changes[changeIndex];
const createdBlob = await createBlob(owner, repo, change);
blobs.push(createdBlob!);
if (verbose) {
console.log(
`Created blob ${changeIndex + 1} / ${changes.length} (${(
(100 * (changeIndex + 1)) /
changes.length
).toFixed(2)}%)`,
);
}
bar.tick();
}
const { data: treeData } = await octokit.git.createTree({