Skip to content

Commit

Permalink
Create tweetRelease.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
johnpierson authored Jun 24, 2022
1 parent babf844 commit 843db87
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/tweetRelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Tweet New Release

# Controls when the action will run.
on:
# Triggers the workflow on release
release:
types: [published]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
latest-version:
runs-on: ubuntu-latest
steps:
- name: Get Latest Release
id: fetch-latest-release
uses: pozetroninc/github-action-get-latest-release@master
with:
owner: johnPierson
repo: MonocleForDynamo
- name: Consume
run: |
echo ${{ steps.fetch-latest-release.outputs.release }}
- uses: ethomson/send-tweet-action@v1
with:
status: "New Monocle Release: https://github.com/johnpierson/RhythmForDynamo/releases/tag/${{ steps.fetch-latest-release.outputs.release }}"
consumer-key: ${{ secrets.TWITTER_CONSUMER_API_KEY }}
consumer-secret: ${{ secrets.TWITTER_CONSUMER_API_SECRET }}
access-token: ${{ secrets.TWITTER_ACCESS_TOKEN }}
access-token-secret: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}

0 comments on commit 843db87

Please sign in to comment.