From 60fcf82249d6e2689fb0e449dec4e26635b8c10f Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Wed, 2 Sep 2026 16:11:17 -0400 Subject: [PATCH] feat(social-post): add optional X posting to social workflow Extend `__social-post.yml` with a new boolean `x` input and add an `x` job that runs when enabled. The job posts to X via the shared `buffer_post` action using `BUFFER_API_KEY`, `BUFFER_X_CHANNEL_ID`, and a message composed from the provided title and body. --- .github/workflows/__social-post.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/__social-post.yml b/.github/workflows/__social-post.yml index 89c2deac..d21ee0f2 100644 --- a/.github/workflows/__social-post.yml +++ b/.github/workflows/__social-post.yml @@ -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: '' @@ -90,3 +95,15 @@ jobs: url: ${{ inputs.url }} flair-id: ${{ secrets.REDDIT_FLAIR_ID }} # https://www.reddit.com/r/>/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 }}"