v0.0.1 #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tweet release | |
# Listen to the `release` event | |
on: | |
release: | |
types: [published] | |
jobs: | |
tweet: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: Eomm/why-don-t-you-tweet@v1 | |
# We don't want to tweet if the repository is not a public one | |
if: ${{ !github.event.repository.private }} | |
with: | |
tweet-message: "New ${{ github.event.repository.name }} release: ${{ github.event.release.tag_name }}! 🎉 | |
Try it out: ${{ github.event.release.html_url }} | |
#go #golang #opensource #library #release #atomicgo" | |
env: | |
TWITTER_CONSUMER_API_KEY: ${{ secrets.TWITTER_CONSUMER_API_KEY }} | |
TWITTER_CONSUMER_API_SECRET: ${{ secrets.TWITTER_CONSUMER_API_SECRET }} | |
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }} | |
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} |