Skip to content

Commit

Permalink
Merge pull request #192 from snow-actions/tweet-when-released
Browse files Browse the repository at this point in the history
Tweet when released
  • Loading branch information
SnowCait committed May 1, 2022
2 parents a0aa0e6 + d5a5780 commit c516bd9
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/released.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Released

on:
release:
types: [ released ]

jobs:
tweet:
runs-on: ubuntu-20.04
timeout-minutes: 5

steps:
- name: Tweet
uses: snow-actions/tweet@v1.1.3
with:
status: |
Release ${{ github.event.release.name }} · ${{ github.repository }}
${{ github.event.release.html_url }}
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 }}

0 comments on commit c516bd9

Please sign in to comment.