-
-
Notifications
You must be signed in to change notification settings - Fork 127
31 lines (29 loc) · 1.04 KB
/
twitter-tip.yml
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
name: tweet-tip
on:
workflow_dispatch:
schedule:
- cron: "0 17 * * *"
jobs:
tweet:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: documentation
- id: tweet
name: Set Tip
run: echo "::set-output name=TIP::$(shuf -n 1 docs/tips.md)"
- uses: smapiot/send-tweet-v2-action@v1
name: Tweet daily tip
with:
status: "${{ steps.tweet.outputs.TIP }} #piral #dailytips #microfrontends"
consumer-key: ${{ secrets.TWITTER_CONSUMER_API_KEY }}
consumer-secret: ${{ secrets.TWITTER_CONSUMER_API_SECRET }}
access-token: ${{ secrets.TWITTER_ACCESS_TOKEN }}
access-token-secret: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
- uses: smapiot/send-bluesky-post-action@v2
name: Bluesky post daily tip
with:
status: "${{ steps.tweet.outputs.TIP }} #piral #dailytips #microfrontends"
bluesky-email: ${{ secrets.BLUESKY_EMAIL }}
bluesky-password: ${{ secrets.BLUESKY_PASSWORD }}