-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
babf844
commit 843db87
Showing
1 changed file
with
32 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,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 }} |