Skip to content

Commit

Permalink
ci: tweet after automatic release
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinJWendt committed Jul 19, 2024
1 parent dbd5eb0 commit 45fed71
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/atomicgo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,19 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
generate_release_notes: true
tag_name: ${{ env.next_version }}

- name: Tweet release
if: env.release_needed == 'true' && !github.event.repository.private
uses: Eomm/why-don-t-you-tweet@v1
with:
tweet-message:
"New ${{ github.event.repository.name }} release: ${{ env.next_version }} 🚀
Try it out: atomicgo.dev/${{ github.event.repository.name }}
#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 }}

0 comments on commit 45fed71

Please sign in to comment.