Fix yazzy integration (maybe) (#13)

* Remove yazzy url from renderer

* Print yazzy url during build

* Add yazzy url to action definition
This commit is contained in:
Carter McBride 2024-07-04 15:21:27 -06:00 committed by GitHub
parent 740191e050
commit 549248a50e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 3 deletions

View file

@ -11,6 +11,9 @@ on:
schedule: schedule:
- cron: "0 */6 * * *" # At minute 0 past every 6th hour. - cron: "0 */6 * * *" # At minute 0 past every 6th hour.
env:
YAZZY_URL: ${{ env.YAZZY_URL }}
permissions: permissions:
pages: write pages: write
id-token: write id-token: write

View file

@ -83,12 +83,14 @@ const finishBuild: () => void = async () => {
); );
} }
const yazzyUrl = process.env.YAZZY_URL;
process.stdout.write(`\nUsing yazzy url: "${yazzyUrl}"\n`);
// generate the static HTML output from our template renderer // generate the static HTML output from our template renderer
const output = render({ const output = render({
data: sortedFeeds, data: sortedFeeds,
errors: errors, errors: errors,
info: buboInfo, info: buboInfo,
yazzyUrl: process.env.YAZZY_URL, yazzyUrl
}); });
// write the output to public/index.html // write the output to public/index.html

View file

@ -10,8 +10,6 @@ import { readFile } from "node:fs/promises";
import { getRelativeTime } from "@feelinglovelynow/get-relative-time"; import { getRelativeTime } from "@feelinglovelynow/get-relative-time";
import type { Feeds, JSONValue } from "./@types/bubo"; import type { Feeds, JSONValue } from "./@types/bubo";
const yazzyUrl = process.env.YAZZY_URL;
/** /**
* Global filters for my Nunjucks templates * Global filters for my Nunjucks templates
*/ */