Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/__social-post.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ on:
required: false
default: false
type: boolean
x:
description: 'Post to X'
required: false
default: false
type: boolean
title:
description: 'Title of the post'
default: ''
Expand Down Expand Up @@ -90,3 +95,15 @@ jobs:
url: ${{ inputs.url }}
flair-id: ${{ secrets.REDDIT_FLAIR_ID }} # https://www.reddit.com/r/<subreddit>>/api/link_flair.json
comment: ${{ inputs.body }}

x:
if: inputs.x
permissions: {}
runs-on: ubuntu-latest
steps:
- name: Post to X through Buffer
uses: LizardByte/actions/actions/buffer_post@def4fdac92797d03bb6d02d7c24ddfa5e7d83825
with:
api_key: ${{ secrets.BUFFER_API_KEY }}
channel_id: ${{ vars.BUFFER_X_CHANNEL_ID }}
message: "${{ inputs.title }}: ${{ inputs.body }}"