https://github.com/gsmlg-dev/send-tweet-v2-action
Send tweet message use V2 API
https://github.com/gsmlg-dev/send-tweet-v2-action
Last synced: about 1 month ago
JSON representation
Send tweet message use V2 API
- Host: GitHub
- URL: https://github.com/gsmlg-dev/send-tweet-v2-action
- Owner: gsmlg-dev
- License: gpl-3.0
- Created: 2024-03-27T08:12:29.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-28T05:33:33.000Z (about 2 years ago)
- Last Synced: 2025-01-11T11:22:08.826Z (over 1 year ago)
- Language: Dart
- Size: 2.49 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Send Tweet V2 Action
Post a tweet using V2 API to Twitter during a GitHub Actions workflow.
## Inputs
| name | required | type | default | description |
| ------------------- | --- | ------ | --------------- | ------------- |
| message | yes | string | | tweet content
| bearer-token | yes | string | | bearer-token
| consumer-key | no | string | |
| consumer-secret | no | string | |
| access-token | no | string | |
| access-token-secret | no | string | |
## Example usage
Workflow:
```yml
name: Send tweet
on:
schedule:
- cron: '0 0 * * *' # every day at 00:00
push:
branches: [ main ]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: gsmlg-dev/send-tweet-v2-action@v1
with:
bearer-token: ${{ secrets.TWITTER_BEARER_TOKEN }}
consumer-key: ${{ secrets.TWITTER_CONSUMER_API_KEY }}
consumer-secret: ${{ secrets.TWITTER_CONSUMER_API_SECRET }}
access-token: ${{ secrets.TWITTER_ACCESS_TOKEN }}
access-token-secret: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
message: |
A new version of Package has been released.