Skip to content

Commit f2d526d

Browse files
committed
fix: restore canonical ingest workflow
1 parent 63be194 commit f2d526d

3 files changed

Lines changed: 4 additions & 10 deletions

File tree

‎.github/workflows/ingest.yml‎

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,12 @@ jobs:
4040
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
4141
restore-keys: |
4242
${{ runner.os }}-node-
43-
- run: npm install
43+
- run: npm ci
4444
- run: npm run build
45-
env:
46-
DUCKDB_DATABASE_PATH: mrtdown.duckdb
47-
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
48-
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
49-
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
50-
SENTRY_RELEASE: production
5145
- run: npm run ingest:webhook
5246
env:
5347
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
5448
MESSAGE: ${{ toJSON(github.event.client_payload) }}
55-
DUCKDB_DATABASE_PATH: mrtdown.duckdb
5649
- name: Check for changes
5750
id: make-changes
5851
run: |-

‎package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"cli": "turbo cli",
1313
"build": "turbo build",
1414
"test": "turbo test",
15+
"ingest:webhook": "node --enable-source-maps ./packages/triage/dist/scripts/ingestViaWebhook.js",
1516
"changeset": "changeset",
1617
"changeset:version": "changeset version",
1718
"changeset:publish": "changeset publish",
@@ -34,4 +35,4 @@
3435
"publishConfig": {
3536
"access": "public"
3637
}
37-
}
38+
}

‎packages/triage/src/util/ingestContent/index.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { assert } from '../assert.js';
1717
import { getSlugDateTimeFromClaims } from './helpers/getSlugDateTimeFromClaims.js';
1818
import type { IngestContent } from './types.js';
1919

20-
const DATA_DIR = resolve(import.meta.dirname, '../../../data');
20+
const DATA_DIR = resolve(import.meta.dirname, '../../../../data');
2121

2222
const store = new FileStore(DATA_DIR);
2323
const writeStore = new FileWriteStore(DATA_DIR);

0 commit comments

Comments
 (0)