-
-
Notifications
You must be signed in to change notification settings - Fork 95
31 lines (26 loc) · 1.06 KB
/
tweet-on-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# This is a basic workflow to help you get started with Actions
name: tweet-on-release
# Controls when the workflow will run
on:
release:
types: [published]
jobs:
send-release-tweet:
runs-on: ubuntu-latest
steps:
- name: Release tweet
uses: Eomm/why-don-t-you-tweet@v1
# if: ${{ !github.event.repository.private }}
with:
tweet-message: |
🥳Release ${{ github.event.repository.name }} ${{ github.event.release.tag_name }}
Changelog:-
${{ github.event.release.html_url }}
Drop a ⭐ to show your support :))
#DEVCommunity #OpenSource #100DaysOfCode #javascript
env:
# Get your tokens from https://developer.twitter.com/apps
TWITTER_CONSUMER_API_KEY: ${{ secrets.TWITTER_CONSUMER_API_KEY }}
TWITTER_CONSUMER_API_SECRET: ${{ secrets.TWITTER_CONSUMER_API_SECRET_KEY }}
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}