From f89e00d463b344d9b4f4e5c6669a474e747f8f5e Mon Sep 17 00:00:00 2001 From: Github Action Dynamic Template Date: Sat, 31 Oct 2020 13:29:09 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=92=AC=20-=20File=20Rebuilt=20|=20Git?= =?UTF-8?q?hub=20Action=20Runner=20:=207?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e339cd8..22837ce 100644 --- a/README.md +++ b/README.md @@ -158,7 +158,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -[Checkout CHANGELOG.md](https://github.com/varunsridharan/action-dynamic-readme/blob/master/CHANGELOG.md) +[Checkout CHANGELOG.md](https://github.com/varunsridharan/action-dynamic-readme/blob/main/CHANGELOG.md) @@ -171,7 +171,7 @@ If you would like to help, please take a look at the list of [issues](https://gi ## 📜 License & Conduct -- [**MIT License**](https://github.com/varunsridharan/action-dynamic-readme/blob/master/LICENSE) © [Varun Sridharan](website) +- [**MIT License**](https://github.com/varunsridharan/action-dynamic-readme/blob/main/LICENSE) © [Varun Sridharan](website) - [Code of Conduct](https://github.com/varunsridharan/.github/blob/master/CODE_OF_CONDUCT.md) From 0c541b775f4dfb661d311153446c5d724ff98d11 Mon Sep 17 00:00:00 2001 From: GH Actions Workflow Sync Bot Date: Sat, 31 Oct 2020 13:34:39 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=92=AC=20#121=20-=20Workflow=20File?= =?UTF-8?q?=20Updated=20/=20=E2=9A=A1=20Triggered=20By=20varunsridharan/.w?= =?UTF-8?q?orkflows@51745bf119634d76132eafb5679953d316d5a6d9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/twitter-post.yml | 58 ++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 .github/workflows/twitter-post.yml diff --git a/.github/workflows/twitter-post.yml b/.github/workflows/twitter-post.yml new file mode 100644 index 0000000..3ae811a --- /dev/null +++ b/.github/workflows/twitter-post.yml @@ -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@main + + - name: "💾 Github Repository Metadata" + uses: varunsridharan/action-repository-meta@main + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: "💫 VS Utility" + uses: varunsridharan/action-vs-utility@main + 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 " " \ No newline at end of file