-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (45 loc) · 1.85 KB
/
throwback-thursday.yml
File metadata and controls
54 lines (45 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Throwback Thursday
on:
schedule:
# 10 AM Eastern on Thursdays: 15:00 UTC (EST) / 14:00 UTC (EDT)
# Using 15:00 UTC = 10 AM EST, 11 AM EDT
- cron: '0 15 * * 4'
workflow_dispatch:
jobs:
select:
uses: CodingWithCalvin/.github/.github/workflows/random-blog-post-from-rss.yml@main
with:
rss_url: 'https://www.codingwithcalvin.net/rss.xml'
history_variable_name: 'THROWBACK_HISTORY'
secrets:
HISTORY_TOKEN: ${{ secrets.CONTRIBUTORS_TOKEN }}
post-bluesky:
needs: select
if: needs.select.outputs.has_post == 'true'
uses: CodingWithCalvin/.github/.github/workflows/bluesky-post.yml@main
with:
post_text: |
Throwback! Originally posted ${{ needs.select.outputs.post_date }}
[${{ needs.select.outputs.post_title }}](${{ needs.select.outputs.post_url }})
${{ needs.select.outputs.post_hashtags }} #ThrowbackThursday
embed_url: ${{ needs.select.outputs.post_url }}
embed_title: ${{ needs.select.outputs.post_title }}
embed_description: ${{ needs.select.outputs.post_description }}
secrets:
BLUESKY_USERNAME: ${{ secrets.BLUESKY_USERNAME }}
BLUESKY_APP_PASSWORD: ${{ secrets.BLUESKY_APP_PASSWORD }}
post-x:
needs: select
if: needs.select.outputs.has_post == 'true'
uses: CodingWithCalvin/.github/.github/workflows/x-post.yml@main
with:
post_text: |
Throwback! Originally posted ${{ needs.select.outputs.post_date }}
${{ needs.select.outputs.post_title }}
${{ needs.select.outputs.post_hashtags }} #ThrowbackThursday
embed_url: ${{ needs.select.outputs.post_url }}
secrets:
X_CONSUMER_KEY: ${{ secrets.X_CONSUMER_KEY }}
X_CONSUMER_KEY_SECRET: ${{ secrets.X_CONSUMER_KEY_SECRET }}
X_ACCESS_TOKEN: ${{ secrets.X_ACCESS_TOKEN }}
X_ACCESS_TOKEN_SECRET: ${{ secrets.X_ACCESS_TOKEN_SECRET }}