Skip to content

Commit c664941

Browse files
authored
fix(workflow): add history tracking to prevent duplicate throwback posts (#39)
1 parent 739048e commit c664941

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/bluesky-new-post.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
- name: Checkout blog repo
6969
uses: actions/checkout@v4
7070
with:
71-
token: ${{ secrets.GITHUB_TOKEN }}
71+
token: ${{ secrets.CONTRIBUTORS_TOKEN }}
7272

7373
- name: Find and update blog post
7474
run: |

.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.CONTRIBUTORS_TOKEN }}
1518

1619
post-bluesky:
1720
needs: select

0 commit comments

Comments
 (0)