An open API service indexing awesome lists of open source software.

https://github.com/khulnasoft-lab/twitter-post-action


https://github.com/khulnasoft-lab/twitter-post-action

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# Twitter Post Action Repo

## Example usage

```yaml
name: twitter-post-action
on: [release]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.x

- name: Install dependencies
run: |
pip install tweepy

- name: Publish tweet
uses: khulnasoft-lab/twitter-post-action
with:
status: Add publish notes here
api_key: ${{ secrets.TWITTER_API_KEY}}
api_key_secrets: ${{ secrets.TWITTER_API_KEY_SECRET}}
access_token: ${{ secrets.TWITTER_ACCESS_TOKEN}}
access_token_secret: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET}}
```