Skip to content

Commit cb7ef96

Browse files
committed
fix(workflow): add history tracking to prevent duplicate throwback posts
Pass history_variable_name and HISTORY_PAT secret to the reusable random-blog-post-from-rss workflow to track previously selected posts and avoid duplicates for 2 years (104 weeks). Requires: CodingWithCalvin/.github#45
1 parent 739048e commit cb7ef96

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/throwback-thursday.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ jobs:
1212
uses: CodingWithCalvin/.github/.github/workflows/random-blog-post-from-rss.yml@main
1313
with:
1414
rss_url: 'https://www.codingwithcalvin.net/rss.xml'
15+
history_variable_name: 'THROWBACK_HISTORY'
16+
secrets:
17+
HISTORY_TOKEN: ${{ secrets.HISTORY_PAT }}
1518

1619
post-bluesky:
1720
needs: select

0 commit comments

Comments
 (0)