|
42 | 42 | rss_url: 'https://www.codingwithcalvin.net/rss.xml' |
43 | 43 | target_date: ${{ inputs.target_date }} |
44 | 44 |
|
45 | | - notify: |
| 45 | + notify-bluesky: |
46 | 46 | needs: detect |
47 | 47 | if: needs.detect.outputs.has_posts == 'true' |
48 | 48 | uses: CodingWithCalvin/.github/.github/workflows/bluesky-post.yml@main |
|
60 | 60 | BLUESKY_USERNAME: ${{ secrets.BLUESKY_USERNAME }} |
61 | 61 | BLUESKY_APP_PASSWORD: ${{ secrets.BLUESKY_APP_PASSWORD }} |
62 | 62 |
|
| 63 | + notify-x: |
| 64 | + needs: detect |
| 65 | + if: needs.detect.outputs.has_posts == 'true' |
| 66 | + uses: CodingWithCalvin/.github/.github/workflows/x-post.yml@main |
| 67 | + with: |
| 68 | + post_text: | |
| 69 | + New Blog Post! |
| 70 | +
|
| 71 | + ${{ needs.detect.outputs.post_title }} |
| 72 | +
|
| 73 | + ${{ needs.detect.outputs.post_hashtags }} |
| 74 | + embed_url: ${{ needs.detect.outputs.post_url }} |
| 75 | + secrets: |
| 76 | + X_CONSUMER_KEY: ${{ secrets.X_CONSUMER_KEY }} |
| 77 | + X_CONSUMER_KEY_SECRET: ${{ secrets.X_CONSUMER_KEY_SECRET }} |
| 78 | + X_ACCESS_TOKEN: ${{ secrets.X_ACCESS_TOKEN }} |
| 79 | + X_ACCESS_TOKEN_SECRET: ${{ secrets.X_ACCESS_TOKEN_SECRET }} |
| 80 | + |
63 | 81 | update-frontmatter: |
64 | | - needs: [detect, notify] |
65 | | - if: needs.detect.outputs.has_posts == 'true' && needs.notify.outputs.post_id != '' |
| 82 | + needs: [detect, notify-bluesky] |
| 83 | + if: needs.detect.outputs.has_posts == 'true' && needs.notify-bluesky.outputs.post_id != '' |
66 | 84 | runs-on: ubuntu-latest |
67 | 85 | steps: |
68 | 86 | - name: Checkout blog repo |
|
73 | 91 | - name: Find and update blog post |
74 | 92 | run: | |
75 | 93 | POST_URL="${{ needs.detect.outputs.post_url }}" |
76 | | - POST_ID="${{ needs.notify.outputs.post_id }}" |
| 94 | + POST_ID="${{ needs.notify-bluesky.outputs.post_id }}" |
77 | 95 |
|
78 | 96 | echo "Post URL: $POST_URL" |
79 | 97 | echo "Post ID: $POST_ID" |
|
0 commit comments