Skip to content

Commit 3f906b4

Browse files
committed
Tweet on Release
Posts a tweet as secureCodeBox when a new stable release is published. Uses the new twwd/twitter-github-action since the existing Twitter actions look outdated. Signed-off-by: Tim Walter <tim.walter@iteratec.com>
1 parent 1056f2d commit 3f906b4

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# SPDX-FileCopyrightText: 2021 iteratec GmbH
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
name: "Tweet about release"
6+
on:
7+
release:
8+
types: [ released ]
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Tweet
14+
uses: twwd/twitter-github-action@v1
15+
with:
16+
twitter_api_key: ${{ secrets.TWITTER_API_KEY }}
17+
twitter_api_secret_key: ${{ secrets.TWITTER_API_SECRET_KEY }}
18+
twitter_access_token: ${{ secrets.TWITTER_ACCESS_TOKEN }}
19+
twitter_access_token_secret: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
20+
tweet_body: |
21+
We just released version ${{ github.event.release.tag_name }} 🎉🎉🎉
22+
Thx a lot to all contributors helping us!
23+
Check it out here: ${{ github.event.release.html_url }}
24+
#release #OWASP #servicetweet

0 commit comments

Comments
 (0)