Skip to content

Commit 58c3e9b

Browse files
authored
Merge pull request #82 from lazy-actions/feat/add-tweet-workflow
ci: Add a workflow to tweet new version
2 parents 2958143 + 85fdf6d commit 58c3e9b

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Release lazy-actions/gitrivy version <%- version %> 🎉🎉🎉
2+
<%- url %>
3+
4+
#GitHub #GitHubActions #Trivy

.github/workflows/twitter.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Twitter
2+
3+
on:
4+
release:
5+
types:
6+
- "published"
7+
8+
jobs:
9+
tweet:
10+
name: Tweet New Version
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- uses: lazy-actions/tweet-action@main
16+
with:
17+
data: |
18+
{
19+
"version": "${{ github.event.release.tag_name }}",
20+
"url": "${{ github.event.release.html_url }}"
21+
}
22+
template_filename: .github/workflows/tweet-action/template.ejs
23+
oauth_consumer_key: ${{ secrets.TWITTER_CONSUMER_KEY }}
24+
oauth_consumer_secret: ${{ secrets.TWITTER_CONSUMER_SECRET }}
25+
oauth_token: ${{ secrets.TWITTER_TOKEN }}
26+
oauth_token_secret: ${{ secrets.TWITTER_TOKEN_SECRET }}

0 commit comments

Comments
 (0)