generated from actions/typescript-action
-
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.
Merge pull request #82 from lazy-actions/feat/add-tweet-workflow
ci: Add a workflow to tweet new version
- Loading branch information
Showing
2 changed files
with
30 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,4 @@ | ||
Release lazy-actions/gitrivy version <%- version %> 🎉🎉🎉 | ||
<%- url %> | ||
|
||
#GitHub #GitHubActions #Trivy |
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,26 @@ | ||
name: Twitter | ||
|
||
on: | ||
release: | ||
types: | ||
- "published" | ||
|
||
jobs: | ||
tweet: | ||
name: Tweet New Version | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: lazy-actions/tweet-action@main | ||
with: | ||
data: | | ||
{ | ||
"version": "${{ github.event.release.tag_name }}", | ||
"url": "${{ github.event.release.html_url }}" | ||
} | ||
template_filename: .github/workflows/tweet-action/template.ejs | ||
oauth_consumer_key: ${{ secrets.TWITTER_CONSUMER_KEY }} | ||
oauth_consumer_secret: ${{ secrets.TWITTER_CONSUMER_SECRET }} | ||
oauth_token: ${{ secrets.TWITTER_TOKEN }} | ||
oauth_token_secret: ${{ secrets.TWITTER_TOKEN_SECRET }} |