x post action⁂
github action that creates a post on x.com.
⭐ star this repo if you find it useful!
this action allows you to automatically post messages to x from your github workflow.
it can be used to announce new releases, share updates, or integrate your github workflow with x communities.
quick links⁂
- description
- features
- inputs
- outputs
- example usage
- how it works
- setting up x api credentials
- development
- contributing
example usage⁂
name: post to x
on:
release:
types: [published]
jobs:
post:
runs-on: ubuntu-latest
steps:
- name: post to x
uses: captradeoff/x-post-action@v1
with:
appKey: ${{ secrets.X_APP_KEY }}
appSecret: ${{ secrets.X_APP_SECRET }}
accessToken: ${{ secrets.X_ACCESS_TOKEN }}
accessSecret: ${{ secrets.X_ACCESS_SECRET }}
message: 'new release ${{ github.event.release.tag_name }} is now available!'
community-id: '123456789'