Skip to content

Commit

Permalink
tweet on every release
Browse files Browse the repository at this point in the history
  • Loading branch information
shadycuz committed Sep 25, 2021
1 parent 240e203 commit 8f586e9
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create Release
id: release_info
uses: release-drafter/release-drafter@v5.15.0
if: github.base_ref == 'master'
with:
Expand All @@ -89,3 +90,21 @@ jobs:
publish: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Tweet Release Info
id: tweet
if: github.base_ref == 'master'
uses: snow-actions/tweet@v1.1.1
env:
CONSUMER_API_KEY: ${{ secrets.TWITTER_CONSUMER_API_KEY }}
CONSUMER_API_SECRET_KEY: ${{ secrets.TWITTER_CONSUMER_API_SECRET_KEY }}
ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
with:
status: |
Released ${{ steps.release_info.outputs.name }}
${{ steps.release_info.outputs.html_url }}
- name: Twitter response
if: github.base_ref == 'master'
run: echo ${{ steps.tweet.outputs.response }}

0 comments on commit 8f586e9

Please sign in to comment.