Skip to content

Commit

Permalink
Merge pull request #82 from lazy-actions/feat/add-tweet-workflow
Browse files Browse the repository at this point in the history
ci: Add a workflow to tweet new version
  • Loading branch information
homoluctus authored Jun 3, 2021
2 parents 2958143 + 85fdf6d commit 58c3e9b
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/tweet-action/template.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Release lazy-actions/gitrivy version <%- version %> 🎉🎉🎉
<%- url %>

#GitHub #GitHubActions #Trivy
26 changes: 26 additions & 0 deletions .github/workflows/twitter.yaml
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 }}

0 comments on commit 58c3e9b

Please sign in to comment.