Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jannawro committed Oct 2, 2024
1 parent 1622e2a commit ca56592
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Post Articles
name: Sync Articles

on:
push:
Expand All @@ -22,4 +22,4 @@ jobs:
env:
API_KEY: ${{ secrets.API_KEY }}
API_URL: ${{ secrets.API_URL }}
run: python hack/post-articles.py
run: python hack/sync-articles.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
title:Soft moves are for the soft
publicationDate:2024-10-02
tags:ttrpg,pbta,moves
tags:ttrpg,pbta,moves,manifesto
===
## The what
What are "soft" moves? Why do they suck?
## The why

Why soft moves just don't cut it.
2 changes: 0 additions & 2 deletions hack/post-articles.py → hack/sync-articles.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ def get_local_articles() -> Set[str]:
with open(file, 'r') as f:
content = f.read()
metadata = get_article_metadata(content)
print("metadata:", metadata)
title = metadata.get('title')
if title:
local_articles.add(to_slug(title))
Expand All @@ -99,7 +98,6 @@ def process_local_article(file: Path, api_url: str, headers: Dict[str, str]):
content = f.read()

metadata = get_article_metadata(content)
print("metadata:", metadata)
title = metadata.get('title')
if not title:
print(f"Skipping {file.name}: No title found")
Expand Down

0 comments on commit ca56592

Please sign in to comment.