Skip to content

Every analytics tool wants a subscription. And your data. I built Twiligent instead. YouTube stats. Instagram stats. One dashboard. Runs locally on your machine.

refactor: remove em dashes from publish script and workflow

valzor87f99f98b0f0
diff --git a/.github/workflows/publish-scheduled.yml b/.github/workflows/publish-scheduled.yml
index 6594e6e..5daa977 100644
--- a/.github/workflows/publish-scheduled.yml
+++ b/.github/workflows/publish-scheduled.yml
@@ -1,15 +1,15 @@
-name: Instagram Scheduled Publisher
+name: Instagram Scheduled Publisher
# Automatically publishes scheduled Instagram posts via GitHub Actions.
-# Runs every 15 minutes — posts publish within ~15 min of their scheduled time.
+# Runs every 15 minutes - posts publish within ~15 min of their scheduled time.
#
# FREE TIER USAGE:
# Public repos → unlimited minutes (recommended)
# Private repos → 2,000 min/month; change cron to '*/30 * * * *' to stay within limit
#
# REQUIRED SECRETS (set in GitHub repo → Settings → Secrets → Actions):
-# SUPABASE_URL — your Supabase project URL
-# SUPABASE_SERVICE_KEY — your Supabase service role key
+# SUPABASE_URL - your Supabase project URL
+# SUPABASE_SERVICE_KEY - your Supabase service role key
on:
schedule:
diff --git a/scripts/publish-scheduled.js b/scripts/publish-scheduled.js
index d136037..62ac082 100644
--- a/scripts/publish-scheduled.js
+++ b/scripts/publish-scheduled.js
@@ -1,13 +1,13 @@
-#!/usr/bin/env node
+#!/usr/bin/env node
/**
* Instagram Scheduled Post Publisher
*
* Runs standalone in GitHub Actions (cron every 15 min).
- * Uses native fetch (Node 18+) and the Supabase REST API — no npm install needed.
+ * Uses native fetch (Node 18+) and the Supabase REST API - no npm install needed.
*
* Required GitHub Secrets:
- * SUPABASE_URL — your Supabase project URL
- * SUPABASE_SERVICE_KEY — your Supabase service role key (bypasses RLS)
+ * SUPABASE_URL - your Supabase project URL
+ * SUPABASE_SERVICE_KEY - your Supabase service role key (bypasses RLS)
*/
const SUPABASE_URL = process.env.SUPABASE_URL;
@@ -163,7 +163,7 @@ async function main() {
let processed = 0;
for (const post of duePosts) {
- console.log(` Publishing: ${post.id} (${post.mediaType}) — scheduled ${post.scheduledAt}`);
+ console.log(` Publishing: ${post.id} (${post.mediaType}) - scheduled ${post.scheduledAt}`);
await updatePostStatus(post.id, { status: 'publishing' });
try {