File tree
Expand file treeCollapse file tree1 file changed
+24
-0
lines changed Expand file treeCollapse file tree1 file changed
+24
-0
lines changed Original file line number | Diff line number | Diff line change |
---|
|
| 1 | +name: Tweet release |
| 2 | + |
| 3 | +# More triggers |
| 4 | +# https://docs..com/en/actions/learn--actions/events-that-trigger-workflows#release |
| 5 | +on: |
| 6 | +release: |
| 7 | +types: [published] |
| 8 | + |
| 9 | +jobs: |
| 10 | +tweet: |
| 11 | +runs-on: ubuntu-latest |
| 12 | +steps: |
| 13 | +- uses: Eomm/why-don-t-you-tweet@v1 |
| 14 | +if: ${{ !.event.repository.private }} |
| 15 | +with: |
| 16 | +# event payload |
| 17 | +# https://docs..com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#release |
| 18 | +tweet-message: "New release: ${{ .event.repository.name }} ${{ .event.release.tag_name }} ${{ .event.release.html_url }} #phpstan" |
| 19 | +env: |
| 20 | +# Get your tokens from https://developer.twitter.com/apps |
| 21 | +TWITTER_CONSUMER_API_KEY: ${{ secrets.TWITTER_CONSUMER_API_KEY }} |
| 22 | +TWITTER_CONSUMER_API_SECRET: ${{ secrets.TWITTER_CONSUMER_API_SECRET }} |
| 23 | +TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }} |
| 24 | +TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} |
You can’t perform that action at this time.
0 commit comments