generated from varunsridharan/git-template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
💬 #63 - Workflow File Updated / ⚡ Triggered By varunsridharan/.workfl…
…ows@a93bce9269c4275b001cb11a2f40db3a75b51ea8
- Loading branch information
GH Actions Workflow Sync Bot
committed
Jul 7, 2020
1 parent
97f7b7b
commit 3f019ca
Showing
1 changed file
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Twitter Post On Release | ||
|
||
env: | ||
VS_WORKFLOW_TYPE: "twitter-post" | ||
|
||
on: | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
twitter_post: | ||
name: "🐦 Tweet" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "📥 Fetching Repository Contents" | ||
uses: actions/checkout@master | ||
|
||
- name: "💾 Github Repository Metadata" | ||
uses: varunsridharan/action-repository-meta@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: "💫 VS Utility" | ||
uses: varunsridharan/action-vs-utility@master | ||
env: | ||
SVA_ONL_TOKEN: ${{ secrets.SVA_ONL_TOKEN }} | ||
|
||
- name: "⚡ Repository - Before Hook" | ||
run: | | ||
echo " " | ||
if [ -f $VS_BEFORE_HOOK_FILE_LOCATION ]; then | ||
echo "✅ Before Hook File Found : $VS_BEFORE_HOOK_FILE_LOCATION" | ||
sh $VS_BEFORE_HOOK_FILE_LOCATION | ||
else | ||
echo "⚠️ No Before Hook File Found : $VS_BEFORE_HOOK_FILE_LOCATION" | ||
fi | ||
echo " " | ||
- name: "🚀 Publishing Tweet 🐦 " | ||
uses: m1ner79/Github-Twittction@master | ||
with: | ||
twitter_status: ${{ env.TWITTER_STATUS }} | ||
twitter_consumer_key: ${{ secrets.TWITTER_API_KEY }} | ||
twitter_consumer_secret: ${{ secrets.TWITTER_API_SECRET_KEY }} | ||
twitter_access_token_key: ${{ secrets.TWITTER_ACCESS_TOKEN }} | ||
twitter_access_token_secret: ${{ secrets.TWITTER_ACCESS_SECRET_TOKEN }} | ||
|
||
- name: "⚡ Repository - After Hook" | ||
run: | | ||
echo " " | ||
if [ -f $VS_AFTER_HOOK_FILE_LOCATION ]; then | ||
echo "✅ After Hook File Found : $VS_AFTER_HOOK_FILE_LOCATION" | ||
sh $VS_AFTER_HOOK_FILE_LOCATION | ||
else | ||
echo "⚠️ No After Hook File Found : $VS_AFTER_HOOK_FILE_LOCATION" | ||
fi | ||
echo " " |