Skip to content

tweet-tip

tweet-tip #935

Workflow file for this run

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 }}