1+ name : Twitter Post On Release
2+
3+ env :
4+ VS_WORKFLOW_TYPE : " twitter-post"
5+
6+ on :
7+ release :
8+ types :
9+ - published
10+
11+ jobs :
12+ twitter_post :
13+ name : " 🐦 Tweet"
14+ runs-on : ubuntu-latest
15+ steps :
16+ - name : " 📥 Fetching Repository Contents"
17+ uses : actions/checkout@master
18+
19+ - name : " 💾 Github Repository Metadata"
20+ uses : varunsridharan/action-repository-meta@master
21+ env :
22+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
23+
24+ - name : " 💫 VS Utility"
25+ uses : varunsridharan/action-vs-utility@master
26+ env :
27+ SVA_ONL_TOKEN : ${{ secrets.SVA_ONL_TOKEN }}
28+
29+ - name : " ⚡ Repository - Before Hook"
30+ run : |
31+ echo " "
32+ if [ -f $VS_BEFORE_HOOK_FILE_LOCATION ]; then
33+ echo "✅ Before Hook File Found : $VS_BEFORE_HOOK_FILE_LOCATION"
34+ sh $VS_BEFORE_HOOK_FILE_LOCATION
35+ else
36+ echo "⚠️ No Before Hook File Found : $VS_BEFORE_HOOK_FILE_LOCATION"
37+ fi
38+ echo " "
39+
40+ - name : " 🚀 Publishing Tweet 🐦 "
41+ uses : m1ner79/Github-Twittction@master
42+ with :
43+ twitter_status : ${{ env.TWITTER_STATUS }}
44+ twitter_consumer_key : ${{ secrets.TWITTER_API_KEY }}
45+ twitter_consumer_secret : ${{ secrets.TWITTER_API_SECRET_KEY }}
46+ twitter_access_token_key : ${{ secrets.TWITTER_ACCESS_TOKEN }}
47+ twitter_access_token_secret : ${{ secrets.TWITTER_ACCESS_SECRET_TOKEN }}
48+
49+ - name : " ⚡ Repository - After Hook"
50+ run : |
51+ echo " "
52+ if [ -f $VS_AFTER_HOOK_FILE_LOCATION ]; then
53+ echo "✅ After Hook File Found : $VS_AFTER_HOOK_FILE_LOCATION"
54+ sh $VS_AFTER_HOOK_FILE_LOCATION
55+ else
56+ echo "⚠️ No After Hook File Found : $VS_AFTER_HOOK_FILE_LOCATION"
57+ fi
58+ echo " "
0 commit comments